Home

gomodinit @2d939109db0e6c822dcc3edb0f614c896354e20a - refs - log -
-
https://git.jolheiser.com/gomodinit.git
go mod init
gomodinit / README.md
- raw -
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# gomodinit

`go mod init`

`gomodinit` walks up the current dir path until it finds something vaguely resembling a URI (i.e. a path part with at least one `.`) 
and constructs a `go mod init <path>` call from it.

If a `.gomodinit` file is found at the same level as the URI path, it will override the URI. (For example, cloning from `git.me.com/mylib` but having your module actually be `go.me.com/mylib`)

## This seems like a trivial thing

very.

## License

[MIT](LICENSE)