2019-06-05 22:57:38 +02:00
|
|
|
// +build go1.10
|
|
|
|
|
|
|
|
package xpath
|
|
|
|
|
2020-12-04 20:36:22 +01:00
|
|
|
import (
|
|
|
|
"math"
|
|
|
|
"strings"
|
|
|
|
)
|
2019-06-05 22:57:38 +02:00
|
|
|
|
|
|
|
func round(f float64) int {
|
|
|
|
return int(math.Round(f))
|
|
|
|
}
|
2020-12-04 20:36:22 +01:00
|
|
|
|
2022-07-16 11:45:58 +02:00
|
|
|
func newStringBuilder() stringBuilder {
|
2020-12-04 20:36:22 +01:00
|
|
|
return &strings.Builder{}
|
|
|
|
}
|