config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentMerchantCode

func GetCurrentMerchantCode() (string, error)

GetCurrentMerchantCode returns the current merchant code from config.

func SetCurrentMerchantCode

func SetCurrentMerchantCode(merchantCode string) error

SetCurrentMerchantCode sets the current merchant code in config.

Types

type Config

type Config struct {
	CurrentMerchantCode string `json:"current_merchant_code,omitempty"`
}

Config holds the CLI configuration.

func Load

func Load() (*Config, error)

Load reads the configuration from disk.

func (*Config) Save

func (c *Config) Save() error

Save writes the configuration to disk.

Jump to

Keyboard shortcuts

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