Versions in this module Expand all Collapse all v0 v0.3.0 Jun 20, 2023 v0.2.0 Apr 27, 2023 v0.1.0 Apr 1, 2023 Changes in this version + func BoolMaybeDeNil(s *bool) bool + func Exists(path string) (bool, error) + func FuncName(skip int) string + func Int32to64(i *int32) *int64 + func IntMaybeDefault(s *int, def int) int + func JsonStr(r interface{}) string + func Jsonify(r interface{}) json.RawMessage + func ListSubFolders(path string) ([]string, error) + func Max(x, y int) int + func MaybeAssignStr(s **string, defStr string) + func MaybeCreate(folder string) error + func MaybeDefault(s *T, v T) T + func MaybeNil(s *T) (res T) + func Min(x, y int) int + func NewString(v string) *string + func Ptr(v T) *T + func StrMaybeDefault(s *string, defStr string) string + func StrMaybeNil(s *string) string + func SumSlice(s []int) int + type Result struct + Code int + Ctx string + Inner *Result + Msg string + Result interface{} + Timestamp time.Time + func ErrResult(err error) *Result + func Error(ctx string, err error) *Result + func Errorf(format string, a ...interface{}) *Result + func GetAPIUrl(baseUrl, endpoint string) (string, *Result) + func GetUrl(baseUrl, endpoint string) (string, *Result) + func ListFiles(folder string) ([]string, *Result) + func MsgError(ctx string, msg string) *Result + func NewErrResult(ctx string, r interface{}) *Result + func NewResult(ctx string, r interface{}) *Result + func OK(ctx string) *Result + func (r *Result) Error() string + func (r *Result) LogWith(logger *zerolog.Logger, ctx string) *Result + func (r *Result) With(ctx string) *Result + func (r Result) GetRootCause() *Result