Help us shape the future of Go! Take the 2026 Go Developer Survey

bundle

package
v0.4.72 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive struct {
	// contains filtered or unexported fields
}

func CreateReleaseBundle

func CreateReleaseBundle(meta Meta, w io.WriteCloser) (*Archive, error)

func (*Archive) Close

func (a *Archive) Close() error

func (*Archive) WriteFile

func (a *Archive) WriteFile(path string) error

func (*Archive) WriteJSON

func (a *Archive) WriteJSON(thing any, name string) error

type Asset

type Asset struct {
	Name         string `json:"name"`
	Path         string `json:"path"`
	OS           string `json:"os"`
	Arch         string `json:"arch"`
	SHA256       string `json:"sha256"`
	ContentType  string `json:"content_type"`
	AbsolutePath string `json:"-"`
}

type Meta

type Meta struct {
	Release *release.Meta `json:"release"`
	Assets  []Asset       `json:"assets"`
}

func BuildMeta

func BuildMeta(distDir string) (Meta, error)

func (Meta) Validate

func (m Meta) Validate() error

Jump to

Keyboard shortcuts

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