Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = log.Default()
Functions ¶
This section is empty.
Types ¶
type ContactInformation ¶
type FabricMod ¶
type FabricMod struct {
FabricModJson FabricModJson
}
type FabricModJson ¶
type FabricModJson struct {
SchemaVersion int `json:"schemaVersion"`
Id string `json:"id"`
Version string `json:"version"`
Name string `json:"name"`
Description string `json:"description"`
Authors []Person `json:"authors"`
Contact ContactInformation `json:"contact"`
License StringAdd `json:"license"`
Icon string `json:"icon"`
Environment string `json:"environment"`
Depends map[string]StringAdd `json:"depends"`
}
type Mod ¶
type Mod struct {
FabricMod FabricMod `json:"fabricMod"`
Hashes modrinth.VersionFileHashes `json:"hashes"`
}
type ModUpdateStatus ¶
type Mods ¶
type Mods struct {
MinecraftVersion string `json:"minecraftVersion"`
Loader string `json:"loader"`
LoaderVersion string `json:"loaderVersion"`
ModsPath string `json:"modsPath"`
Mods []Mod `json:"mods"`
}
func Extract_mods ¶
func (*Mods) UpdateToPath ¶
type Person ¶
type Person struct {
Name string `json:"name"`
Contact ContactInformation `json:"contact"`
}
func (Person) MarshalJSON ¶
func (*Person) UnmarshalJSON ¶
type StringAdd ¶
type StringAdd []string
func (StringAdd) MarshalJSON ¶
func (*StringAdd) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.