Documentation
¶
Index ¶
- Variables
- func GoBuildTool(basePath string) chat.Tool
- func GoGetTool(basePath string) chat.Tool
- func GoModTidyTool(basePath string) chat.Tool
- func GoTestTool(basePath string) chat.Tool
- func LinterTool(basePath string) chat.Tool
- func ListDirTool(basePath string) chat.Tool
- func ReadFileTool(basePath string) chat.Tool
- func WriteFileTool(basePath string) chat.Tool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBuildFailed = errors.New("build failed") ErrTestFailed = errors.New("tests failed") ErrGoGetFailed = errors.New("go get failed") ErrLinterFailed = errors.New("lint issues found") ErrGoModTidyFailed = errors.New("go mod tidy failed") ErrPathInvalid = errors.New("path is outside of allowed directory") ErrInvalidPackageName = errors.New("invalid package name") )
Functions ¶
func GoBuildTool ¶
GoBuildTool returns a tool for running 'go build ./...'.
func GoModTidyTool ¶
GoModTidyTool returns a tool for running 'go mod tidy'.
func GoTestTool ¶
GoTestTool returns a tool for running 'go test ./...'.
func LinterTool ¶
LinterTool returns a tool for running 'golangci-lint run --fix'.
func ListDirTool ¶
ListDirTool returns a tool for listing directory contents.
func ReadFileTool ¶
ReadFileTool returns a tool for reading file content.
func WriteFileTool ¶
WriteFileTool returns a tool for writing content to a file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.