extension

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaseToCamel

func CaseToCamel(name string) string

下划线写法转为驼峰写法

func LowerFirstCode

func LowerFirstCode(str string) string

首字母小写

Types

type CaseJsonEncoder

type CaseJsonEncoder struct {
}

func CamelJson

func CamelJson() CaseJsonEncoder

func (CaseJsonEncoder) Encode

func (jsonEncoder CaseJsonEncoder) Encode(w io.Writer, data interface{}) error

type DefaultJsonEncoder

type DefaultJsonEncoder struct {
}

func (DefaultJsonEncoder) Encode

func (jsonEncoder DefaultJsonEncoder) Encode(w io.Writer, data interface{}) error

type Encoder

type Encoder interface {
	Encode(w io.Writer, data interface{}) error
}

type JsonCamelCase

type JsonCamelCase struct {
	Value interface{}
}

func (JsonCamelCase) MarshalJSON

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

Jump to

Keyboard shortcuts

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