path=example.com/m | |
version=v1.0.0 | |
hash=h1:tpqYOOmuilagXzyqoJ3roUjp8gneQeTv5YVpL6BG7/k= | |
-- go.mod -- | |
module example.com/m | |
go 1.13 | |
-- m.go -- | |
package m | |
func Foo() int { return 42 } | |
-- cmd/hello/hello.go -- | |
package main | |
import ( | |
"fmt" | |
"example.com/m" | |
) | |
func main() { | |
fmt.Println(m.Foo()) | |
} |