Versions in this module Expand all Collapse all v0 v0.0.1 Aug 28, 2023 Changes in this version + func Capitalize(s string) string + type Option func(Tokenizer) + func WithDefaultReplacements() Option + func WithDefaultReserved() Option + func WithReplacement(s string) Option + func WithReserved(s string) Option + type Token struct + Class TokenClass + Runes []rune + func NewToken(class TokenClass, r ...rune) *Token + func (tok *Token) Append(r rune) + func (tok *Token) Pop() rune + func (tok *Token) Valid() bool + type TokenClass int + const ClassDigit + const ClassLowerCase + const ClassOther + const ClassUpperCase + type Tokenizer struct + func Default() Tokenizer + func New(opts ...Option) Tokenizer + func (tokenizer Tokenizer) ExportID(s string) string + func (tokenizer Tokenizer) ToCamel(s string, export bool) string + func (tokenizer Tokenizer) Tokens(s string) []*Token + func (tokenizer Tokenizer) UnexportID(s string) string