config

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(key string) bool

* * Bool * @param string key * @return bool *

func Get

func Get(key string) interface{}

* * Get * @param string key * @return interface{} *

func Int

func Int(key string) int

* * Int * @param string key * @return int *

func Load

func Load(config et.Json) error

* * Load * @param et.Json config * @return error *

func Number

func Number(key string) float64

* * Number * @param string key * @return float64 *

func PasswordHash

func PasswordHash(password string) string

* * PasswordHash * @param string password * @return string *

func PasswordUnhash

func PasswordUnhash(password string) string

* * PasswordUnhash * @param string password * @return string *

func Set

func Set(key string, value interface{})

* * Get *

func String

func String(key string) string

* * String * @param string key * @return string *

Types

type Config

type Config struct {
	*et.Json
	// contains filtered or unexported fields
}

func (*Config) Load

func (s *Config) Load() error

func (*Config) Save

func (s *Config) Save() error

Jump to

Keyboard shortcuts

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