2019-09-07 11:58:52 +02:00
|
|
|
// +build go1.10
|
|
|
|
|
|
|
|
package xpath
|
|
|
|
|
2020-12-05 17:36:50 +01:00
|
|
|
import (
|
|
|
|
"math"
|
|
|
|
"strings"
|
|
|
|
)
|
2019-09-07 11:58:52 +02:00
|
|
|
|
|
|
|
func round(f float64) int {
|
|
|
|
return int(math.Round(f))
|
|
|
|
}
|
2020-12-05 17:36:50 +01:00
|
|
|
|
2022-07-16 11:43:41 +02:00
|
|
|
func newStringBuilder() stringBuilder {
|
2020-12-05 17:36:50 +01:00
|
|
|
return &strings.Builder{}
|
|
|
|
}
|