Documentation ¶
Index ¶
- func Abort(format string, args ...interface{})
- func Capitalize(s string) string
- func FormatDuration(d time.Duration) string
- func FormatRelativeDate(t time.Time, now time.Time) (s string)
- func JSONEncode(value interface{}) ([]byte, error)
- func Panicf(format string, args ...interface{})
- func RecoverValueData(value interface{}) (msg, trace string)
- func Ref[T any](x T) *T
- func ShellEscape(s string) string
- func StringsContain(ss []string, s string) bool
- func ToSentence(s string) string
- func YAMLEncode(jsonValue interface{}) ([]byte, error)
- func YAMLValueToJSONValue(yamlValue interface{}) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Capitalize ¶
func FormatDuration ¶ added in v1.0.0
func JSONEncode ¶
func RecoverValueData ¶
func RecoverValueData(value interface{}) (msg, trace string)
func ShellEscape ¶ added in v1.0.0
func StringsContain ¶
func ToSentence ¶
func YAMLEncode ¶
func YAMLValueToJSONValue ¶
func YAMLValueToJSONValue(yamlValue interface{}) (interface{}, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.