config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Unlicense Imports: 5 Imported by: 0

Documentation

Overview

Package config implements the config.binpkg configuration format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URLs []string // Download URLs
}

Config for binary packages.

func Load

func Load(filename string) (*Config, error)

Load a config.binpkg file from filename and return the Config struct.

func (*Config) Marshal

func (cfg *Config) Marshal() string

Marshal cfg as string.

func (*Config) RandomURLs

func (cfg *Config) RandomURLs() ([]string, error)

RandomURLs returns the URLs from cfg in random order.

Jump to

Keyboard shortcuts

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