mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-09-13 22:29:01 -04:00
Bumps [github.com/testcontainers/testcontainers-go/modules/opensearch](https://github.com/testcontainers/testcontainers-go) from 0.43.0 to 0.44.0. - [Release notes](https://github.com/testcontainers/testcontainers-go/releases) - [Commits](https://github.com/testcontainers/testcontainers-go/compare/v0.43.0...v0.44.0) --- updated-dependencies: - dependency-name: github.com/testcontainers/testcontainers-go/modules/opensearch dependency-version: 0.44.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
41 lines
610 B
Go
41 lines
610 B
Go
package stats
|
|
|
|
import (
|
|
"strconv"
|
|
)
|
|
|
|
type intParser struct {
|
|
err error
|
|
}
|
|
|
|
func (p *intParser) ParseInt(s string, base int) int {
|
|
if p.err != nil {
|
|
return 0
|
|
}
|
|
var n int64
|
|
n, p.err = strconv.ParseInt(s, base, 0)
|
|
return int(n)
|
|
}
|
|
|
|
func (p *intParser) ParseInt64(s string, base int) int64 {
|
|
if p.err != nil {
|
|
return 0
|
|
}
|
|
var n int64
|
|
n, p.err = strconv.ParseInt(s, base, 64)
|
|
return n
|
|
}
|
|
|
|
func (p *intParser) ParseUint64(s string, base int) uint64 {
|
|
if p.err != nil {
|
|
return 0
|
|
}
|
|
var n uint64
|
|
n, p.err = strconv.ParseUint(s, base, 64)
|
|
return n
|
|
}
|
|
|
|
func (p *intParser) Err() error {
|
|
return p.err
|
|
}
|