config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseURL

func BaseURL(env string) string

func Dir

func Dir() (string, error)

Types

type Config

type Config struct {
	APIKey      string `json:"api_key,omitempty"`
	APISecret   string `json:"api_secret,omitempty"`
	Environment string `json:"environment,omitempty"`
}

func Load

func Load() (*Config, error)

func (*Config) ResolveAPIKey

func (c *Config) ResolveAPIKey() string

func (*Config) ResolveAPISecret

func (c *Config) ResolveAPISecret() string

func (*Config) ResolveEnvironment

func (c *Config) ResolveEnvironment(flagTest bool) string

func (*Config) Save

func (c *Config) Save() error

Jump to

Keyboard shortcuts

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