Home

gomodinit @main - refs - log -
https://git.jolheiser.com/gomodinit.git
go mod init
drwxrwxrwx
42 B
.woodpecker/
-rw-r--r--
32 B
.gitignore
-rw-r--r--
469 B
.goreleaser.yaml
-rw-r--r--
1.1 kB
LICENSE
-rw-r--r--
284 B
README.md
-rw-r--r--
534 B
flake.lock
-rw-r--r--
875 B
flake.nix
-rw-r--r--
124 B
go.mod
-rw-r--r--
794 B
go.sum
-rw-r--r--
1.1 kB
gomodinit_test.go
-rw-r--r--
1.1 kB
main.go

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.

This seems like a trivial thing

very.

License

MIT