Documentation ¶
Overview ¶
mostly stolen from https://gist.github.com/crgimenes/c3b8b4fcce8529e9201f83c8da134f32
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnsupportedType is returned if the type is not implemented ErrUnsupportedType = errors.New("unsupported type") )
Functions ¶
This section is empty.
Types ¶
type Manifest ¶
type Manifest struct { SchemaVersion int `json:"schemaVersion"` ID string `json:"id"` Name string `json:"name"` Version string `json:"version"` License string `json:"license"` Icon string `json:"icon"` Contact struct { Email string `json:"email,omitempty"` Irc string `json:"irc,omitempty"` Homepage string `json:"homepage,omitempty"` Issues string `json:"issues,omitempty"` Sources string `json:"sources,omitempty"` } `json:"contact"` Authors []string `json:"authors"` Description string `json:"description"` Environment string `json:"environment"` Entrypoints map[string]interface{} `json:"entrypoints"` Jars []struct { File string `json:"file"` } `json:"jars,omitempty"` LanguageAdapters map[string]string `json:"languageAdapters,omitempty"` Mixins []interface{} `json:"mixins,omitempty"` Depends map[string]StrArray `json:"depends,omitempty"` Custom interface{} `json:"custom,omitempty"` }
type StrArray ¶ added in v0.1.3
type StrArray []string
StrArray string array to be used on JSON UnmarshalJSON
func (StrArray) MarshalJSON ¶ added in v0.1.3
MarshalJSON convert a golang string array to a JSON object array of string or a string
func (*StrArray) UnmarshalJSON ¶ added in v0.1.3
UnmarshalJSON convert JSON object array of string or a string format strings to a golang string array
Click to show internal directories.
Click to hide internal directories.