strings

package module
v0.0.0-...-074f8e3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 3 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownCase = errUnknownCase{}

Functions

func Coalesce

func Coalesce(str ...string) string

Coalesce returns the first non-empty string value

func Splitx

func Splitx(s, sep string) []string

Splitx is a special case of strings.Split which returns an empty slice if the string is empty

func ToLowerInitial

func ToLowerInitial(s string) string

ToLowerInitial converts a string's first character to lower case.

func ToUpperInitial

func ToUpperInitial(s string) string

ToUpperInitial converts a string's first character to upper case.

Types

type RegisteredCases

type RegisteredCases []string

func (*RegisteredCases) AddCase

func (r *RegisteredCases) AddCase(c string) string

func (*RegisteredCases) String

func (r *RegisteredCases) String() string

func (*RegisteredCases) ToUnknownCaseErr

func (r *RegisteredCases) ToUnknownCaseErr(actual string) error

Jump to

Keyboard shortcuts

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