config package - github.com/CorySanin/swankyindex/internal/config - Go Packages

config

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SeparatorString = string(os.PathSeparator)
)

Variables

This section is empty.

Functions

func NormalizePath

func NormalizePath(p string) *string

Types

type Conf

type Conf struct {
	Port               *int             `yaml:"port"`
	PrometheusPort     *int             `yaml:"prometheusPort"`
	PrometheusPath     *string          `yaml:"prometheusPath"`
	Title              *string          `yaml:"title"`
	Storage            *string          `yaml:"storage"`
	Directory          *string          `yaml:"directory"`
	Styles             *string          `yaml:"styles"`
	Icons              *bool            `yaml:"icons"`
	ShowDownloads      *bool            `yaml:"showDownloads"`
	ShowDotfiles       *bool            `yaml:"showDotfiles"`
	ShowSymlinks       *bool            `yaml:"showSymlinks"`
	EnableJS           *bool            `yaml:"enableJs"`
	EnableZipDownloads *bool            `yaml:"enableZipDownloads"`
	Heading            *string          `yaml:"heading"`
	Footer             *string          `yaml:"footer"`
	Ignore             []*regexp.Regexp `yaml:"ignore"`
	// contains filtered or unexported fields
}

func Config

func Config() Conf

func (*Conf) GetDirectory

func (cfg *Conf) GetDirectory() (string, error)

Jump to

Keyboard shortcuts

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