Documentation ¶
Index ¶
- func AstFileFilename(astFile *ast.File, fset *token.FileSet) (string, error)
- func FindGoMod(dir string) (string, bool)
- func FindGoSum(dir string) (string, bool)
- func FullEnv() []string
- func GetGoPath(env []string) []string
- func GetGoRoot(env []string) string
- func GetGoVersion(env []string) (string, error)
- func GoEnv() ([]string, error)
- func GoModExclude(ctx context.Context, dir, path string, env []string) error
- func GoModInit(ctx context.Context, dir, modPath string, env []string) error
- func GoModReplace(ctx context.Context, dir, old, new string, env []string) error
- func GoModRequire(ctx context.Context, dir, path string, env []string) error
- func GoModTidy(ctx context.Context, dir string, env []string) error
- func GoPath() []string
- func GoRoot() string
- func GoVersion() (string, error)
- func JoinPathLists(w ...string) string
- func ParseDirGoMod(dir string) (*modfile.File, string, error)
- func PrintAstFile(w io.Writer, fset *token.FileSet, astFile *ast.File) error
- func Printfc(skip int, f string, args ...interface{})
- func ReadGoMod(ctx context.Context, dir string, env []string) (*modfile.File, error)
- func ReadSource(filename string, src interface{}) ([]byte, error)
- func SourceCursor(cursorStr, src string, n int) (string, int, error)
- func StartCPUProfile() error
- func StopCPUProfile() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGoVersion ¶ added in v1.3.1
returns version as in "1.0" without the "go" prefix
func GoModExclude ¶ added in v1.3.1
func GoModReplace ¶
func JoinPathLists ¶
func PrintAstFile ¶ added in v1.1.0
func ReadSource ¶
taken from: go/parser/interface.go:25:9
func SourceCursor ¶
Allows a src string to have multiple cursor strings to simulate cursor position. Used in testing. Useful cursor runes: "●". First n position is zero.
func StartCPUProfile ¶ added in v1.1.0
func StartCPUProfile() error
func StopCPUProfile ¶ added in v1.1.0
func StopCPUProfile() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.