internal

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CharAt added in v0.6.0

func CharAt(s string, i int) byte

CharAt returns the ith character of s, if it exists. Otherwise, it returns the first character.

func EqualFloat

func EqualFloat(expected, observed float64) bool

func HasAnyIndex added in v0.3.0

func HasAnyIndex(s string, suffixes []string) int

func HasAnyPrefix added in v0.3.0

func HasAnyPrefix(s string, prefixes []string) bool

func HasAnySuffix

func HasAnySuffix(s string, suffixes []string) bool

HasAnySuffix determines if `s` has any of the suffixes in `suffixes`.

func Min

func Min(a, b int) int

min returns the minimum of `a` and `b`.

func ReadDataFile

func ReadDataFile(path string) []byte

func StringInSlice

func StringInSlice(a string, slice []string) bool

StringInSlice determines if `slice` contains the string `a`.

func ToTitle added in v0.6.0

func ToTitle(m string, strict bool) string

ToTitle returns a copy of the string m with its first Unicode letter mapped to its title case.

Types

This section is empty.

Jump to

Keyboard shortcuts

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