Documentation ¶
Index ¶
- func CallerFileLine(skip int) string
- func CallerName(skip int) string
- func FindGoMod(dir string) (string, bool)
- func FindGoSum(dir string) (string, bool)
- func FuncName(f any) string
- func GetGoPath(env []string) []string
- func GetGoRoot(env []string) string
- func GetGoVersion(env []string) (string, error)
- func GoEnv(dir string) []string
- func GoEnv2(dir string) ([]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 Hashable(v any) bool
- func JoinPathLists(w ...string) string
- func Log(args ...any)
- func LogSkip(skip int, args ...any)
- func LogSkipf(skip int, f string, args ...any)
- func Logf(f string, args ...any)
- func OsAndGoEnv(dir string) []string
- func ParseDirGoMod(dir string) (*modfile.File, string, error)
- func ParseFuncDecl(name, src string) (*ast.FuncDecl, error)
- func PrintAstFile(w io.Writer, fset *token.FileSet, astFile *ast.File) error
- func Printfc(skip int, f string, args ...any)
- func ReadGoMod(ctx context.Context, dir string, env []string) (*modfile.File, error)
- func ReadSource(filename string, src any) ([]byte, error)
- func SprintFnStack(skip int) string
- func Sprintfc(skip int, f string, args ...any) string
- func StartCPUProfile() error
- func StopCPUProfile() error
- func TodoError(args ...any) error
- func TodoErrorSkip(skip int, args ...any) error
- func TodoErrorSkipf(skip int, f string, args ...any) error
- func TodoErrorStr(s string) error
- func TodoErrorType(t any) error
- func TodoErrorf(f string, args ...any) error
- func Trace(n int) (string, int, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallerFileLine ¶ added in v1.3.7
func CallerName ¶ added in v1.3.7
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 OsAndGoEnv ¶ added in v1.3.3
func PrintAstFile ¶ added in v1.1.0
func ReadSource ¶
taken from: go/parser/interface.go:25:9
func SprintFnStack ¶ added in v1.3.7
func StartCPUProfile ¶ added in v1.1.0
func StartCPUProfile() error
func StopCPUProfile ¶ added in v1.1.0
func StopCPUProfile() error
func TodoErrorSkip ¶ added in v1.3.7
func TodoErrorStr ¶ added in v1.3.7
func TodoErrorType ¶ added in v1.3.7
func TodoErrorf ¶ added in v1.3.7
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.