util

package
v0.0.0-...-d88c8b5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseUint32s

func ParseUint32s(ss []string) ([]uint32, error)

ParseUint32s parses a slice of strings into a slice of uint32s.

func ParseUint64s

func ParseUint64s(ss []string) ([]uint64, error)

ParseUint64s parses a slice of strings into a slice of uint64s.

func ReadUintFromFile

func ReadUintFromFile(path string) (uint64, error)

ReadUintFromFile reads a file and attempts to parse a uint64 from it.

func SysReadFile

func SysReadFile(file string) (string, error)

SysReadFile is a simplified ioutil.ReadFile that invokes syscall.Read directly. https://github.com/prometheus/node_exporter/pull/728/files

Types

This section is empty.

Jump to

Keyboard shortcuts

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