Documentation ¶
Index ¶
- func AstFileFilename(astFile *ast.File, fset *token.FileSet) (string, error)
- func FindGoMod(dir string) (string, bool)
- 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 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 GoModReplace ¶
func JoinPathLists ¶
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 ¶
func StartCPUProfile() error
func StopCPUProfile ¶
func StopCPUProfile() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.