common

package
v0.0.0-...-1e7ec6e Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: MIT Imports: 0 Imported by: 6

Documentation

Index

Constants

View Source
const (
	WrapSignatureSize = len(resultStubHeader) +
		len(resultStubFuncSignatureStart) +
		len(resultStubFuncSignatureEnd) +
		2 // '\n', '}'
)

Variables

This section is empty.

Functions

func AppendFooter

func AppendFooter(source []byte) []byte

func AppendHeader

func AppendHeader(result []byte, typeName string) []byte

func AppendImports

func AppendImports(result []byte, imports []string) []byte

func AppendJSONFieldNameAsBytes

func AppendJSONFieldNameAsBytes(bytes []byte, jsonName string) []byte

func DigitsSize

func DigitsSize(i int) int

func EmptyResultStub

func EmptyResultStub(name string) []byte

Static allocate

func StringSliceSize

func StringSliceSize(slice []string) int

func StringStartConst

func StringStartConst(jsonName string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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