config

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Home

func Home() string

Home Find home directory.

func InitConfig

func InitConfig()

InitConfig generates a Viper config file with the provided object key and secret.

func UpdateConfig

func UpdateConfig(c Config) error

UpdateConfig update config file new object key and secret.

Types

type Config

type Config struct {
	Key    string `mapstructure:"key"`
	Secret string `mapstructure:"secret"`
}

func ReadConfigFile

func ReadConfigFile() (*Config, error)

readConfigFile reads the configuration from the file and returns the Config struct.

Jump to

Keyboard shortcuts

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