util

package
v0.0.0-...-e701526 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Btoi

func Btoi[T int64 | int32 | int](s string) T

func CopyList

func CopyList[T any](l []T) []T

func CopyMap

func CopyMap[K comparable, V any](m map[K]V) map[K]V

func GetInput

func GetInput(day int) string

func NewBoolMatrix

func NewBoolMatrix(width, height int) map[int]map[int]bool

func NumberList

func NumberList(in string, separator string) []int

func ParseInt

func ParseInt[T int64 | int32 | int](s string) T

func ReadInput

func ReadInput(in, splitBy string) []string

func RegexCaptureGroups

func RegexCaptureGroups(re *regexp.Regexp, input string) []map[string]string

func RegexSubexps

func RegexSubexps(re *regexp.Regexp, input string) []string

func Reverse

func Reverse(s string) string

func Str2Int

func Str2Int(in string) int

func Str2IntSlice

func Str2IntSlice(in []string) []int

func WithProfiling

func WithProfiling() func()

func WithTime

func WithTime() func()

Types

This section is empty.

Jump to

Keyboard shortcuts

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