utils

package
v0.0.0-...-a727ea7 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGroups

func GetGroups(re *regexp.Regexp, s string) [][]string

GetGroups is essentially the same as FindAllStringSubmatch, but it returns just the groups and not the full match

func ParseFloat

func ParseFloat(s string) float64

ParseFloat converts a string to a float64 and panics if it fails

func ParseInt

func ParseInt(s string) int

ParseInt converts a string to an int and panics if it fails

func ReadFile

func ReadFile(filename string) string

ReadFile reads a file and returns its content as a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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