Source File
valueparser.go
Belonging Package
github.com/prometheus/procfs/internal/util
package util
import (
)
type ValueParser struct {
v string
err error
}
func ( string) *ValueParser {
return &ValueParser{v: }
}
func ( *ValueParser) () int { return int(.int64()) }
func ( *ValueParser) () int64 {
if .err != nil {
return 0
}
func ( *ValueParser) () *uint64 {
if .err != nil {
return nil
}
func ( *ValueParser) () error {
return .err
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |