Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownCase = errUnknownCase{} ErrUnknownPrefix = errUnknownPrefix{} )
Functions ¶
func DefaultIfEmpty ¶ added in v0.0.358
func Splitx ¶
Splitx is a special case of strings.Split which returns an empty slice if the string is empty
func ToLowerInitial ¶ added in v0.0.38
ToLowerInitial converts a string's first character to lower case.
func ToUpperInitial ¶ added in v0.0.38
ToUpperInitial converts a string's first character to upper case.
Types ¶
type RegisteredCases ¶ added in v0.0.167
type RegisteredCases struct {
// contains filtered or unexported fields
}
func SwitchExact ¶ added in v0.0.271
func SwitchExact(actual string) *RegisteredCases
func (*RegisteredCases) AddCase ¶ added in v0.0.167
func (r *RegisteredCases) AddCase(c string) bool
func (*RegisteredCases) String ¶ added in v0.0.168
func (r *RegisteredCases) String() string
func (*RegisteredCases) ToUnknownCaseErr ¶ added in v0.0.168
func (r *RegisteredCases) ToUnknownCaseErr() error
type RegisteredPrefixes ¶ added in v0.0.271
type RegisteredPrefixes struct {
// contains filtered or unexported fields
}
func SwitchPrefix ¶ added in v0.0.271
func SwitchPrefix(actual string) *RegisteredPrefixes
func (*RegisteredPrefixes) HasPrefix ¶ added in v0.0.271
func (r *RegisteredPrefixes) HasPrefix(prefix string) bool
func (*RegisteredPrefixes) String ¶ added in v0.0.271
func (r *RegisteredPrefixes) String() string
func (*RegisteredPrefixes) ToUnknownPrefixErr ¶ added in v0.0.271
func (r *RegisteredPrefixes) ToUnknownPrefixErr() error
Click to show internal directories.
Click to hide internal directories.