Documentation ¶
Overview ¶
Package gomod provides utilities for getting information about the current Go module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindDir ¶
FindDir finds the nearest directory containing a go.mod file. Checks the current dir and then walks up parent directories.
func GuessPackage ¶
GuessPackage guesses the full Go package path for a file name, relative to current working directory. Imperfect. Assumes package names always match directory names.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.