data

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Links []*LinkConfig `toml:"links"`
}
var Cfg *Config

func GetConfig

func GetConfig() (*Config, error)
func (c *Config) GetLink(slug string) string

func (*Config) GetLinkConfig

func (c *Config) GetLinkConfig(slug string) *LinkConfig

func (*Config) Has added in v1.0.1

func (c *Config) Has(link string) bool

type LinkConfig

type LinkConfig struct {
	ID   string `toml:"id"`
	Link string `toml:"link"`
}

func (*LinkConfig) GenerateID

func (l *LinkConfig) GenerateID(path string)

Jump to

Keyboard shortcuts

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