zig

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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

func (z *Zig) Install(ctx context.Context, version *core.RemoteVersion) error

Install 下载 tar.xz 并解压。

func (*Zig) ListInstalledVersions

func (z *Zig) ListInstalledVersions(ctx context.Context) ([]*core.InstalledVersion, error)

func (*Zig) ListRemoteVersions

func (z *Zig) ListRemoteVersions(ctx context.Context) ([]*core.RemoteVersion, error)

ListRemoteVersions 解析官方 index.json,取可解析的语义化版本。

func (*Zig) Name

func (z *Zig) Name() string

func (*Zig) SetDefaultVersion

func (z *Zig) SetDefaultVersion(ctx context.Context, version string) error

func (*Zig) Uninstall

func (z *Zig) Uninstall(ctx context.Context, version string) error

Source Files

  • layout.go
  • target.go
  • zig.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL