mcmod

package
v0.0.0-...-4f3ca93 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetadataFileName = "mcmod.info"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	ID      string
	Version string
}

func (*Dependency) MarshalText

func (d *Dependency) MarshalText() ([]byte, error)

func (*Dependency) UnmarshalText

func (d *Dependency) UnmarshalText(text []byte) error

type Metadata

type Metadata struct {
	ID string `json:"modid"`
	//Name    string `json:"name,omitempty"`
	Version string `json:"version,omitempty"`

	Dependencies []Dependency `json:"dependencies,omitempty"`
}

func ReadMetadata

func ReadMetadata(reader io.Reader) ([]*Metadata, error)

func ReadMetadataBytes

func ReadMetadataBytes(bytes []byte) ([]*Metadata, error)

Jump to

Keyboard shortcuts

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