util

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(s []string, e string) bool

ContainsString checks if slice s contains string e

func ContainsStringAny

func ContainsStringAny(s []string, e string) bool

ContainsStringAny checks if any string in slice s contains string e

func FindInStringSlice

func FindInStringSlice(s []string, e string) int

FindInStringSlice returns the location of the first string in slice s which contains string e

func FormatInning

func FormatInning(inning string, isTop bool, status string) string

FormatInning takes an inning and a half and returns a pretty-formatted string

func LocateTime

func LocateTime(t time.Time, l string) (time.Time, error)

LocateTime locates a time in a place

func PadDate

func PadDate(toPad int) string

PadDate formats an integer as a two-digit string

Types

This section is empty.

Jump to

Keyboard shortcuts

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