config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "shrinkster"
	CfgFile = "config.yaml"
)

Variables

This section is empty.

Functions

func Save

func Save(user model.UserLoginResponse) error

Save writes the config to the config file.

Types

type Config

type Config struct {
	ID    uuid.UUID `yaml:"id"`
	Email string    `yaml:"email"`
}

func Load

func Load() (Config, error)

Load reads the config file and returns the config.

Jump to

Keyboard shortcuts

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