package
0.15.1
Repository: https://github.com/prometheus/procfs.git
Documentation: pkg.go.dev

# Functions

NewValueParser creates a ValueParser using the input string.
ParseBool parses a string into a boolean pointer.
Parses a uint64 from given hex in string.
ParsePInt64s parses a slice of strings into a slice of int64 pointers.
ParseUint32s parses a slice of strings into a slice of uint32s.
ParseUint64s parses a slice of strings into a slice of uint64s.
ReadFileNoStat uses io.ReadAll to read contents of entire file.
ReadIntFromFile reads a file and attempts to parse a int64 from it.
ReadUintFromFile reads a file and attempts to parse a uint64 from it.
SysReadFile is a simplified os.ReadFile that invokes syscall.Read directly.

# Structs

A ValueParser enables parsing a single string into a variety of data types in a concise and safe way.