Web lists-archives.com

Bug#921150: ITP: golang-github-arduino-go-paths-helper




Package: wnpp
Severity: wishlist
Owner: Rock Storm <rockstorm@xxxxxxx>

* Package name    : golang-github-arduino-go-paths-helper
  Version         : 0.0~git20180911.751652d-1
  Upstream Author : Arduino
* URL             : https://github.com/arduino/go-paths-helper
* License         : GPL-2.0
  Programming Lang: Go
  Description     : Library to simplify handling of paths

This library aims to simplify handling of the most common operations
with paths. Most operations that usually require a bit of convoluted
system calls are now simplified, for example to check if a path is a
directory:

    buildPath := "/path/to/somewhere"
    srcPath := filepath.Join(buildPath, "src")
    if info, err := os.Stat(srcPath); err == nil && !info.IsDir() {
        os.MkdirAll(srcPath)
    }

Using this library can be done this way:

    buildPath := paths.New("/path/to/somewhere")
    srcPath := buildPath.Join("src")
    if !srcPath.IsDir() {
        scrPath.MkdirAll()
    }

The package 'arduino-builder' [1] has been split into several smaller
Go libraries like this one (at least two more to come). Even
though 'arduino-builder' is maintained by the electronics team, I
believe this libraries should be maintained by the Go team.

If you agree, then let this mail serve also as a formal request for the
Go team to accept this package, and also to accept me in the team.

@Geert, I'm CCing you so you are aware of this matter and in case
you want to argue against.

[1]: https://salsa.debian.org/electronics-team/arduino/arduino-builder

Regards,

-- 
Rock Storm
GPG KeyID: 4096R/C96832FD
GPG Fingerprint:
 C304 34B3 632C 464C 2FAF  C741 0439 CF52 C968 32FD

Attachment: signature.asc
Description: PGP signature