config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseDir

func BaseDir(names ...string) string

func Init

func Init() error

func LocalDir

func LocalDir(names ...string) string

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