tools

package
v2.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlattenFloat64List

func FlattenFloat64List(list []float64) string

func FlattenFloatList

func FlattenFloatList(list []float32) string

func FlattenInt64List

func FlattenInt64List(list []int64) string

func FlattenIntList

func FlattenIntList(list []int) string

func FlattenStringList

func FlattenStringList(list []string) string

func FlattenUint64List

func FlattenUint64List(list []uint64) string

func FlattenUintList

func FlattenUintList(list []uint) string

func Gopath

func Gopath() string

Gopath returns GOPATH

func NormalizeResourceName

func NormalizeResourceName(name string) string

NormalizeResourceName

func ProjectRootPath

func ProjectRootPath() string

func Sformat

func Sformat(buf []byte) []byte

Sformat formats go source codes

func ToCLIFlagName

func ToCLIFlagName(name string) string

func ToCamelCaseName

func ToCamelCaseName(name string) string

func ToCamelWithFirstLower

func ToCamelWithFirstLower(name string) string

func ToDashedName

func ToDashedName(name string) string

func ToSnakeCaseName

func ToSnakeCaseName(name string) string

func WriteFileWithTemplate

func WriteFileWithTemplate(config *TemplateConfig) bool

Types

type TemplateConfig

type TemplateConfig struct {
	OutputPath         string
	Template           string
	Parameter          interface{}
	PreventOverwriting bool
}

Jump to

Keyboard shortcuts

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