config

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HourSeconds int64 = int64(time.Hour.Seconds())
	DaySeconds  int64 = HourSeconds * 24
	WeekSeconds int64 = DaySeconds * 7
)
View Source
var DefaultBuilder string
View Source
var DefaultConfig string
View Source
var DefaultRemote string
View Source
var DefaultWorkflow string

Functions

func GetDir added in v0.2.0

func GetDir(names ...string) string

func GetLocalDir added in v0.2.0

func GetLocalDir(names ...string) string

func Init

func Init() error

func Now added in v0.4.0

func Now() int64

Types

type Config

type Config struct {
	Workspace  string `toml:"workspace" default:"$HOME/dev/src" env:"true"`
	Playground string `toml:"playground" default:"$HOME/dev/play" env:"true"`

	SearchLimit int `toml:"search_limit" default:"200"`

	Editor string `toml:"editor" default:"vim"`
}

func Get

func Get() *Config

Jump to

Keyboard shortcuts

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