util

package
v0.0.0-...-9567d93 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(text, key []byte) ([]byte, error)

func Encrypt

func Encrypt(text, key []byte) ([]byte, error)

func GetUsernamePassword

func GetUsernamePassword() (models.UserCredential, error)

func OverwriteJson

func OverwriteJson(filename string, data []byte)

func PromptGetInput

func PromptGetInput(pc PromptContent, maskingAllowed bool) string

func ReadJson

func ReadJson(fileName string) []byte

Types

type Config

type Config struct {
	EncryptKey string `mapstructure:"enc_key"`
}

func LoadConfig

func LoadConfig(path string) (config Config, err error)

type PromptContent

type PromptContent struct {
	ErrorMsg string
	Label    string
}

Jump to

Keyboard shortcuts

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