factorio_com

package
v0.0.0-...-121efbb Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadMod

func DownloadMod(mod Mod) (string, error)

func LatestRelease

func LatestRelease() string

Types

type Mod

type Mod struct {
	Category          string `json:"category"`
	DownloadsCount    int    `json:"downloads_count"`
	LastHighlightedAt string `json:"last_highlighted_at"`
	Name              string `json:"name"`
	Owner             string `json:"owner"`
	Releases          []struct {
		DownloadUrl string `json:"download_url"`
		FileName    string `json:"file_name"`
		InfoJson    struct {
			FactorioVersion string `json:"factorio_version"`
		} `json:"info_json"`
		ReleasedAt time.Time `json:"released_at"`
		Sha1       string    `json:"sha1"`
		Version    string    `json:"version"`
	} `json:"releases"`
	Score     float64 `json:"score"`
	Summary   string  `json:"summary"`
	Thumbnail string  `json:"thumbnail"`
	Title     string  `json:"title"`
}

func GetModInfo

func GetModInfo(name string) (Mod, error)

Jump to

Keyboard shortcuts

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