utils

package
v0.0.0-...-f297f56 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

see https://stackoverflow.com/questions/8757389/reading-a-file-line-by-line-in-go/16615559#16615559 for openfile code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractNumbers

func ExtractNumbers(input string) []string

func FindFirst

func FindFirst(input string, tokens []string) (string, int)

func Intersection

func Intersection[T comparable](a []T, b []T) []T

func IsNumber

func IsNumber(input string) bool

func MinIntSlice

func MinIntSlice(v []int) (m int)

func ReadFileLines

func ReadFileLines(inputFile string) ([]string, error)

func ReplaceStringNumberByDigit

func ReplaceStringNumberByDigit(input string) string

func ToInt

func ToInt(input string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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