Documentation
¶
Index ¶
- Constants
- func InitContext(dir string) (string, error)
- type Context
- func (c *Context) AddGo(ctx context.Context, goBinary string, alias optional.Val[string]) (bool, string, error)
- func (c *Context) FindTool(str string) (*Tool, error)
- func (c *Context) GetToolsDir() string
- func (c *Context) RunTool(ctx context.Context, str string, args ...string) error
- func (c *Context) Save() error
- func (c *Context) SpecFilename() string
- func (c *Context) Sync(ctx context.Context, maxWorkers int) error
- func (c *Context) Upgrade(ctx context.Context) error
- type GoModule
- type Spec
- type Tool
Constants ¶
View Source
const ( RuntimeGo = "go" SpecFilename = ".toolset.json" SnapshotFilename = ".snapshot.json" DefaultToolsDir = "./bin/tools" )
Variables ¶
This section is empty.
Functions ¶
func InitContext ¶
InitContext will initialize context in specified
Types ¶
type Context ¶
func NewContext ¶
func (*Context) GetToolsDir ¶
func (*Context) SpecFilename ¶
type Spec ¶
func (*Spec) AddOrUpdateTool ¶
Click to show internal directories.
Click to hide internal directories.