config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyProxy = &Proxy{
		Url:    "",
		Enable: false,
	}
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Proxy *Proxy `yaml:"proxy"`
}

func NewConfig

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

func NewConfigWithPath

func NewConfigWithPath(p string) (*Config, error)

type Proxy

type Proxy struct {
	Url    string `yaml:"url"`
	Enable bool   `yaml:"enable"`
}

Jump to

Keyboard shortcuts

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