udwGoTypeMarshal

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 12 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsObjHasInitAlloc

func IsObjHasInitAlloc(val reflect.Value, typ reflect.Type) bool

func IsReflectTypeHasInitAlloc

func IsReflectTypeHasInitAlloc(typ reflect.Type) bool

func MapStringStringToSortedStringKeyValueList

func MapStringStringToSortedStringKeyValueList(m map[string]string) []udwMap.KeyValuePair

func MustGoTypeMarshalWithBuf

func MustGoTypeMarshalWithBuf(ctx MustGoTypeMarshalContext, obj interface{}, _buf *bytes.Buffer)

func MustReadGoChar

func MustReadGoChar(r *udwGoReader.Reader) []byte

func MustReadGoString

func MustReadGoString(r *udwGoReader.Reader) (output []byte)

func MustReadGoStringFromString

func MustReadGoStringFromString(s string) (output string)

func MustWriteObjectToMainPackage

func MustWriteObjectToMainPackage(obj interface{}) string

func MustWriteObjectToMainPackageASCIISafe

func MustWriteObjectToMainPackageASCIISafe(obj interface{}) string

func MustWriteObjectToMainPackageWithBuf

func MustWriteObjectToMainPackageWithBuf(obj interface{}, _buf *bytes.Buffer)

func MustWriteObjectToMainPackageWithUnexport

func MustWriteObjectToMainPackageWithUnexport(obj interface{}) string

func StringToGoVarName

func StringToGoVarName(in string) string

func WriteByteSlice

func WriteByteSlice(buf []byte) string

func WriteGoConst

func WriteGoConst(pairList []udwMap.KeyValuePair) string

func WriteGoConstByMap

func WriteGoConstByMap(m map[string]string) string

func WriteReflectTypeNameToGoFile

func WriteReflectTypeNameToGoFile(Ctx MustGoTypeMarshalContext, Typ reflect.Type, Buf *bytes.Buffer)

func WriteStringToGolang

func WriteStringToGolang(s string) string

func WriteStringToGolangASCII

func WriteStringToGolangASCII(s string) string

func WriteStringToGolangDoubleQuotation

func WriteStringToGolangDoubleQuotation(s string) string

func WriteStringToGolangDoubleQuotationASCII

func WriteStringToGolangDoubleQuotationASCII(s string) string

func WriteStringToGolangDoubleQuotationToBuf

func WriteStringToGolangDoubleQuotationToBuf(s string, outBuf *bytes.Buffer)

func WriteStringToGolangToBuf

func WriteStringToGolangToBuf(s string, _buf *bytes.Buffer)

Types

type MustGoTypeMarshalContext

type MustGoTypeMarshalContext struct {
	AddTypeNameWithImportPackage func(pkgPath string, name string, buf *bytes.Buffer)
	IsStringASCIISafe            bool
	IsMarshalUnexport            bool
}

type WriteReflectTypeNameToGoFileRequest

type WriteReflectTypeNameToGoFileRequest struct {
	Ctx      MustGoTypeMarshalContext
	Typ      reflect.Type
	Buf      *bytes.Buffer
	IsPtrAnd bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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