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)
very.