README ¶ mod - Module support for Go/Go+ Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func GOMOD(dir string) (file string, err error) func GOPMOD(dir string, mode Mode) (file string, err error) type Mode Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GOMOD ¶ func GOMOD(dir string) (file string, err error) GOMOD checks the modfile (go.mod) in this dir or its ancestors. func GOPMOD ¶ func GOPMOD(dir string, mode Mode) (file string, err error) GOPMOD checks the modfile in this dir or its ancestors. If mode == 0, it checks both gop.mod and go.mod If mode == GoModOnly, it checks go.mod If mode == GopModOnly, it checks gop.mod Types ¶ type Mode ¶ added in v0.9.1 type Mode int const ( GoModOnly Mode = 1 GopModOnly Mode = 2 ) Source Files ¶ View all Source files mod.go Directories ¶ Show internal Expand all Path Synopsis env gopmod modcache modfetch modfile modload Click to show internal directories. Click to hide internal directories.