util

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2018 License: MIT Imports: 6 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 checks if any string in slice s 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

func SendNotification

func SendNotification(apiURL, phoneNumber, message string) ([]byte, error)

SendNotification sends a message to the phonenumber using the API at apiURL

func Spinner

func Spinner()

Spinner prints out a cool spinner to prove that we're doing something

Types

This section is empty.

Jump to

Keyboard shortcuts

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