javascript

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Keywords = []string{
		"break", "case", "catch", "NaN", "undefined",
		"continue", "debugger", "default", "delete",
		"do", "else", "finally", "for", "function",
		"if", "in", "instanceof", "new", "return",
		"switch", "this", "throw", "try", "typeof",
		"var", "void", "while", "with", "class",
		"const", "enum", "export", "extends",
		"import", "super", "implements", "interface",
		"let", "package", "private", "protected",
		"public", "static", "yield", "null", "true",
		"false", "int", "byte", "char", "goto",
		"final", "float", "short", "long", "double",
		"native", "throws", "boolean", "abstract",
		"volatile", "transient", "synchronized", "var",
	}
)

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
	SeparatorChar   string
	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