config

package
v0.0.0-...-4173f1e Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StateDirectory

func StateDirectory() (v string, err error)

Types

type BrowserId

type BrowserId struct {
	Browser browser.Browser `json:"browser"`
	Id      string          `json:"id"`
}

func (BrowserId) IsEmpty

func (bi BrowserId) IsEmpty() bool

func (*BrowserId) Set

func (bi *BrowserId) Set(v string) (err error)

func (BrowserId) String

func (bi BrowserId) String() string

type Config

type Config struct {
	DefaultBrowser BrowserId `json:"default-browser"`
	Home           string    `json:"-"`
}

func Default

func Default() (c Config, err error)

func (Config) Directory

func (c Config) Directory() (v string)

func (*Config) Read

func (c *Config) Read() (err error)

func (Config) ServerPath

func (c Config) ServerPath() string

func (Config) SocketPath

func (c Config) SocketPath() (v string, err error)

func (Config) SocketPathDebug

func (c Config) SocketPathDebug() (v string, err error)

func (*Config) Write

func (c *Config) Write() (err error)

Source Files

  • browser_id.go
  • default.go
  • main.go

Jump to

Keyboard shortcuts

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