config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(path string) error

Write writes the configuration to a TOML file

Types

type Config

type Config struct {
	BaseURL string `toml:"base_url,omitempty"`
	APIKey  string `toml:"api_key"`
}

Config is the configuration for the application

func Get

func Get(path string) (Config, error)

Get reads the configuration from a TOML file and returns a Config

Jump to

Keyboard shortcuts

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