go/src/cmd/go/internal/modfetch/toolchain.go

type toolchainRepo

func (r *toolchainRepo) ModulePath() string {}

func (r *toolchainRepo) Versions(ctx context.Context, prefix string) (*Versions, error) {}

func (r *toolchainRepo) Stat(ctx context.Context, rev string) (*RevInfo, error) {}

func (r *toolchainRepo) Latest(ctx context.Context) (*RevInfo, error) {}

func (r *toolchainRepo) GoMod(ctx context.Context, version string) (data []byte, err error) {}

func (r *toolchainRepo) Zip(ctx context.Context, dst io.Writer, version string) error {}

func (r *toolchainRepo) CheckReuse(ctx context.Context, old *codehost.Origin) error {}

// goToDL converts a Go version like "1.2" to a DL module version like "v0.0.1-go1.2.linux-amd64".
func goToDL(v, goos, goarch string) string {}

// dlToGo converts a DL module version like "v0.0.1-go1.2.linux-amd64" to a Go version like "1.2".
func dlToGo(v string) (string, bool) {}