Documentation ¶
Index ¶
- func GetEnvAny(names ...string) string
- func GetEnvAnyWithDefault(defaultEnv string, names ...string) string
- func Json2Object(s string, v interface{}) error
- func JsonBytesX2Object(s []byte, v interface{}) error
- func JsonX2Object(s string, v interface{}) error
- func Object2Json(v interface{}) (string, error)
- func Object2JsonBytes(v interface{}) ([]byte, error)
- func Object2PrettyJson(v interface{}) (string, error)
- func PrettyJson(s string) string
- func PrettyJsonBytes(s []byte) []byte
- func ReadWithDefault(r io.Reader, fallback string) string
- func RegexNamedMatch(input string, pattern string) map[string]string
- func TemplateRender(src string, context interface{}) (string, error)
- func TemplateRenderByPong2(tpl string, context map[string]interface{}) (string, error)
- func Url(args ...string) string
- func UrlWithSeparator(sep string, args ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvAnyWithDefault ¶
func Json2Object ¶
func JsonBytesX2Object ¶
func JsonX2Object ¶
func Object2Json ¶
func Object2JsonBytes ¶
func Object2PrettyJson ¶
func PrettyJson ¶
func PrettyJsonBytes ¶
func TemplateRender ¶
func TemplateRenderByPong2 ¶
func UrlWithSeparator ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.