Documentation ¶
Index ¶
- func ChangeStructFieldValue(cStruct interface{}, cField string, cValue string)
- func Decrypt(text, key string) (string, error)
- func Encrypt(text, key string) (string, error)
- func ErrJSON(c echo.Context, err error) error
- func ErroJSON(c echo.Context, msg string) error
- func GetEnv(env string, def string) string
- func JSONaStruct(resp *resty.Response, s, e interface{}) error
- func MustGetEnv(env string) string
- func ParseToken(token string) string
- func PegarID(jwt map[string]interface{}, key string) (string, error)
- func PegarIDEcho(c echo.Context, key string) (string, error)
- func PrepareForSQL(s interface{}, exclude []string) []string
- func StructFields(s interface{}) []reflect.StructField
- type J
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeStructFieldValue ¶
func GetEnv ¶
GetEnv returns a value from a environment variable when the variable is not found it returns the value from the variable def
func JSONaStruct ¶
func MustGetEnv ¶
MustGetEnv crashes the server when a environment variable is not specified
func ParseToken ¶
func PrepareForSQL ¶
func StructFields ¶
func StructFields(s interface{}) []reflect.StructField
Types ¶
Click to show internal directories.
Click to hide internal directories.