golang

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Keywords = []string{
		"break", "default", "func", "interface", "select",
		"case", "defer", "go", "map", "struct", "chan",
		"else", "goto", "package", "switch", "const",
		"fallthrough", "if", "range", "type", "continue",
		"for", "import", "return", "var", "any", "bool",
		"byte", "comparable", "complex64", "complex128",
		"error", "float32", "float64", "int", "int8",
		"int16", "int32", "int64", "rune", "string", "uint",
		"uint8", "uint16", "uint32", "uint64", "uintptr",
		"nil", "true", "false", "iota", "append", "cap",
		"close", "complex", "copy", "delete", "imag", "len",
		"make", "new", "panic", "print", "println", "real",
		"recover",
	}
)

Functions

func IsKeyword

func IsKeyword(s string) bool

func Name

func Name(s string) string

func NameWithConfig

func NameWithConfig(s string, config NameConfig) string

Types

type NameConfig

type NameConfig struct {
	ReplacementChar rune
	Public          bool
}

func DefaultConfig

func DefaultConfig() NameConfig

Jump to

Keyboard shortcuts

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