workshop

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Unlicense Imports: 13 Imported by: 0

Documentation

Overview

This package is mostly a rewrite of https://github.com/SegoCode/swd/blob/main/swd.go which was provided via GitHub under The Unlicence

Index

Constants

View Source
const ENDPOINT string = "https://node05.steamworkshopdownloader.io/prod//api/"

Variables

This section is empty.

Functions

func CheckAvailable

func CheckAvailable(resource interface{}) (string, []error)

func DownloadResource

func DownloadResource(id int, output io.Writer) error

func ExtractResource

func ExtractResource(id int, dir string, verbose bool) (string, error)

func GetGame

func GetGame(id interface{}) (string, error)

Gets the game from a steam workshop ID or URL. Arg "id" accepts int or string, where the former is the ID and the latter is the full URL.

func GetResourceTitle

func GetResourceTitle(url string) (string, error)

func IsCollection

func IsCollection(url string) (bool, error)

func WorkshopIDFromURL

func WorkshopIDFromURL(url string) (int, error)

func WorkshopIDToURL

func WorkshopIDToURL(id interface{}) (string, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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