xxstrings

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustJsonBytes added in v0.0.12

func MustJsonBytes(data interface{}) []byte

将结构类型值转为json字符串,如果data不满足 json.Marshal 的转换要求将会发生异常 使用tag: (omitempty) 来标记可省略的空字段

func MustJsonReader added in v0.0.12

func MustJsonReader(data interface{}) io.Reader

func MustJsonString

func MustJsonString(data interface{}) string

func ToStrings

func ToStrings(s []fmt.Stringer) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL