config

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigPath added in v1.2.6

func ConfigPath() (string, error)

func CreateConfigFile added in v1.2.6

func CreateConfigFile(username, password string) error

func RemoveConfigFile added in v1.2.6

func RemoveConfigFile() error

Types

type Config

type Config struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

JSON用の構造体

func LoadConfig

func LoadConfig() (Config, error)

Username,passwordを返す(Config型)

Jump to

Keyboard shortcuts

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