config

package
v0.0.0-...-d0df922 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ApiToken  string          `json:"apiToken"`
	Libraries []LibraryConfig `json:"libraries"`
}

func NewConfig

func NewConfig(opts ...ConfigOptions) (*Config, error)

type ConfigConfig

type ConfigConfig struct {
	ConfigFilename string
}

type ConfigOptions

type ConfigOptions func(*ConfigConfig)

func WithConfigFilename

func WithConfigFilename(filename string) ConfigOptions

type LibraryConfig

type LibraryConfig struct {
	Name string `json:"name"`
	Path string `json:"path"`
	ID   string `json:"id"`
}

Jump to

Keyboard shortcuts

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