Documentation
¶
Index ¶
- type Zig
- func (z *Zig) GetDefaultVersion(ctx context.Context) *core.InstalledVersion
- func (z *Zig) Install(ctx context.Context, version *core.RemoteVersion) error
- func (z *Zig) ListInstalledVersions(ctx context.Context) ([]*core.InstalledVersion, error)
- func (z *Zig) ListRemoteVersions(ctx context.Context) ([]*core.RemoteVersion, error)
- func (z *Zig) Name() string
- func (z *Zig) SetDefaultVersion(ctx context.Context, version string) error
- func (z *Zig) Uninstall(ctx context.Context, version string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Zig ¶
type Zig struct{}
Zig 语言实现。
func (*Zig) GetDefaultVersion ¶
func (z *Zig) GetDefaultVersion(ctx context.Context) *core.InstalledVersion
func (*Zig) Install ¶
Install 下载 tar.xz 并解压。
func (*Zig) ListInstalledVersions ¶
func (*Zig) ListRemoteVersions ¶
ListRemoteVersions 解析官方 index.json,取可解析的语义化版本。
func (*Zig) SetDefaultVersion ¶
Source Files
¶
- layout.go
- target.go
- zig.go
Click to show internal directories.
Click to hide internal directories.