must

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 9 Imported by: 33

Documentation

Overview

Package must contains helper functions that panic if they have errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atoi

func Atoi(s string) int

func Atoi64

func Atoi64(s string) int64

func FindStringSubmatch

func FindStringSubmatch(rx *regexp.Regexp, s string, expectedLen int) []string

func ForEachLineOfStreamedInput

func ForEachLineOfStreamedInput(f func(lineNum int, s string))

func GetFullInput

func GetFullInput() []string

func GetFullInputAsBytes

func GetFullInputAsBytes() [][]byte

func JSONMarshal

func JSONMarshal(v any) []byte

func JSONMarshalIndent

func JSONMarshalIndent(v any, prefix, indent string) []byte

func ParseListOfNumbers

func ParseListOfNumbers(s, sep string) []int

func ParseListOfNumbers64

func ParseListOfNumbers64(s, sep string) []int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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