config

package
v0.0.0-...-1659c99 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GalleryMode viewMode = "gallery"
	GridMode    viewMode = "grid"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Title           string                 `json:"title"`
	Root            string                 `json:"root"`
	DefaultViewMode viewMode               `json:"default_view_mode"`
	Theme           string                 `json:"theme"`
	ThemeConfig     map[string]interface{} `json:"theme_config"`
	ThumbSize       int                    `json:"thumb_size"`
	StaticDir       string
}

func ReadConfig

func ReadConfig(path string) (*Config, error)

Jump to

Keyboard shortcuts

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