Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigNotFound = fmt.Errorf("config not found")
)
View Source
var (
	ErrTooPermissive = errors.New("permissions too permissive")
)

Functions

func GetConfigFile

func GetConfigFile() (string, error)

func WithConfig

func WithConfig(ctx context.Context, file string) context.Context

Types

type File

type File struct {
	Github Github `yaml:"github"`
}

func ConfigFromContext

func ConfigFromContext(ctx context.Context) (*File, error)

func ParseFromFile

func ParseFromFile() (*File, error)

func (*File) WriteToFile

func (c *File) WriteToFile() error

type Github

type Github struct {
	Token string `yaml:"token"`
}

Jump to

Keyboard shortcuts

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