jsonconv

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Camel2Case

func Camel2Case(name string) string

Camel2Case TODO ************************************** 其他方法 ************************************** 驼峰式写法转为下划线写法

func Case2Camel

func Case2Camel(name string) string

Case2Camel TODO 下划线写法转为驼峰写法

func Lcfirst

func Lcfirst(str string) string

Lcfirst TODO 首字母小写

func Ucfirst

func Ucfirst(str string) string

Ucfirst TODO 首字母大写

Types

type Buffer

type Buffer struct {
	*bytes.Buffer
}

Buffer TODO 内嵌bytes.Buffer,支持连写

func NewBuffer

func NewBuffer() *Buffer

NewBuffer TODO

func (*Buffer) Append

func (b *Buffer) Append(i interface{}) *Buffer

Append TODO

type JsonCamelCase

type JsonCamelCase struct {
	Value interface{}
}

JsonCamelCase TODO ************************************** 驼峰json **************************************

func (JsonCamelCase) MarshalJSON

func (c JsonCamelCase) MarshalJSON() ([]byte, error)

MarshalJSON TODO

type JsonSnakeCase

type JsonSnakeCase struct {
	Value interface{}
}

JsonSnakeCase TODO ************************************** 下划线json **************************************

func (JsonSnakeCase) MarshalJSON

func (c JsonSnakeCase) MarshalJSON() ([]byte, error)

MarshalJSON TODO

Jump to

Keyboard shortcuts

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