config

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Label    string `json:"label"`
	Nickname string `json:"nickname"`
	Exec     string `json:"exec"`
}

type Config

type Config struct {
	PageTitle    string        `json:"pageTitle"`
	TLSKey       string        `json:"tlsKey"`
	TLSCert      string        `json:"tlsCert"`
	Links        []Link        `json:"links"`
	Commands     []Command     `json:"commands"`
	Informations []Information `json:"informations"`
}

func LoadConfig

func LoadConfig(filepath string) (*Config, error)

type Information

type Information struct {
	Label string `json:"label"`
	Exec  string `json:"exec"`
}
type Link struct {
	Label  string `json:"label"`
	Url    string `json:"url"`
	NewTab bool   `json:"newTab"`
}

Jump to

Keyboard shortcuts

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