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

fabric

package
v0.0.0-...-b8bf632 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

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

func FromJSON

func FromJSON(json string) (*Manifest, error)

FromJSON decodes Manifest from json.

func MustFromJSON

func MustFromJSON(json string) *Manifest

MustFromJSON decodes Manifest from json and panics on error.

func (*Manifest) Breaks

func (m *Manifest) Breaks(key, value string) bool

Breaks replaces value for key in breaks field.

func (*Manifest) Conflicts

func (m *Manifest) Conflicts(key, value string) bool

Conflicts replaces value for key in conflicts field.

func (*Manifest) Depends

func (m *Manifest) Depends(key, value string) bool

Depends replaces value for key in depends field.

func (*Manifest) JSON

func (m *Manifest) JSON() (string, error)

JSON encodes m back to JSON.

func (*Manifest) MustJSON

func (m *Manifest) MustJSON() string

MustJSON encodes m back to JSON and panics on error.

func (*Manifest) Recommends

func (m *Manifest) Recommends(key, value string) bool

Recommends replaces value for key in recommends field.

func (*Manifest) Suggests

func (m *Manifest) Suggests(key, value string) bool

Suggests replaces value for key in suggests field.

Jump to

Keyboard shortcuts

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