sitelib

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IconNamesSet = map[string]bool{}

Functions

This section is empty.

Types

type Config

type Config struct {
	DBPath        string `yaml:"db_path"`
	ListenAddress string `yaml:"listen_address"`
	BaseURL       string `yaml:"base_url"`
	Files         string `yaml:"files"`
	BaseDomain    string `yaml:"base_domain"`
	Debug         bool   `yaml:"debug"`
}

Config represents site or converter config

func ReadConfig

func ReadConfig(path string) Config

ReadConfig reads config file and parses it

type Pack

type Pack struct {
	HumanName   string   `json:"human_name"`
	Scale       int      `json:"scale"`
	VGap        *int     `json:"vgap"`
	Disable     bool     `json:"disable"`
	Version     int      `json:"version"`
	FinalType   string   `json:"final_type"`
	HiddenIcons []string `json:"hidden_icons"`
	Timestamp   int64    `json:"timestamp"`

	InputType    string          `json:"-"`
	Name         string          `json:"-"`
	Icons        map[string]bool `json:"-"`
	VisibleIcons map[string]bool `json:"-"`
}

Pack represents an icon pack

func ParsePacks added in v1.1.0

func ParsePacks(dir string) []Pack

Jump to

Keyboard shortcuts

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