Versions in this module Expand all Collapse all v1 v1.0.0 Apr 16, 2026 Changes in this version + func Decode(encenv string) string + func DecodeJsonFile(path string, passphrase []byte) (retstr string, err error) + func DecodeJsonFileNoErr(path string, passphrase []byte) (retstr string) + func GetDecryptedEnvValue() string + func GetDecryptedEnvValueThenAddEnv(m map[string]string) (ejsondata string) + func GetEncryptedEnvValue() string + func GetEncryptedEnvValueThenAddEnv(m map[string]string) (ejsondata string) + func GetEnvName() string + func GetOrCreateEnv(key, defaultValue string) (retstr string) + func Getenv(key string) (value string) + func Hasenv(key string) bool + func Init() + func SetEnvFromDecryptedValue(value string) + func Setenv(key, value string) (err error) + func String() string + func Unsetenv(key string) (err error) + type Ejson struct + func NewGsjson(datas []byte, hookChange func(), forceInit ...bool) (f *Ejson, err error) + func (gs *Ejson) Delete(path string) (err error) + func (gs *Ejson) Get(path string) (result gjson.Result) + func (gs *Ejson) LoadAndDelete(path string) (value gjson.Result) + func (gs *Ejson) LoadNewData(buffer []byte) (err error) + func (gs *Ejson) LoadOrStore(path string, value any) (actual gjson.Result) + func (gs *Ejson) Loads() (result gjson.Result) + func (gs *Ejson) Set(path string, value interface{}) (err error) + func (gs *Ejson) SetHookLoad(f func(buffer *[]byte)) + func (gs *Ejson) SetRaw(path string, value []byte) (err error) + func (gs *Ejson) String() string + func (gs *Ejson) WriteTo(path string, password []byte) (err error) + type EnvJson struct + func GetGenvjson() *EnvJson + func NewEnvJson(envkey string, pwd string) *EnvJson + func (dd *EnvJson) Decode(encenv string) string + func (dd *EnvJson) GetDecryptedEnvValue() string + func (dd *EnvJson) GetDecryptedEnvValueThenAddEnv(m map[string]string) (ejsondata string) + func (dd *EnvJson) GetEncryptedEnvValue() string + func (dd *EnvJson) GetEncryptedEnvValueThenAddEnv(m map[string]string) (ejsondata string) + func (dd *EnvJson) GetEnvName() string + func (dd *EnvJson) GetOrCreateEnv(key, defaultValue string) (retstr string) + func (dd *EnvJson) Getenv(key string) (value string) + func (dd *EnvJson) Hasenv(key string) bool + func (dd *EnvJson) SetEnvFromDecryptedValue(value string) + func (dd *EnvJson) Setenv(key, value string) (err error) + func (dd *EnvJson) String() string + func (dd *EnvJson) Unsetenv(key string) (err error) + type Fjson struct + ForceInit bool + RmdirFlag bool + func NewFjson(path string, passphrase []byte, removeIfFileInvalid bool, ...) (f *Fjson, err error) + func (f *Fjson) GetJsonFilePath() string + func (f *Fjson) GetPassPhrase() []byte + func (f *Fjson) ReadFile(paths ...string) (jsonByte []byte, err error) + func (f *Fjson) Remove() (err error) + func (f *Fjson) SendCmd(cmd int) + func (f *Fjson) WriteToFile()