1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-12 20:27:30 +08:00
otto/type_boolean.go
Robert Krimen 20d2e8bba6 gofmt
Ugh.
2013-01-25 09:59:42 -08:00

14 lines
257 B
Go

package otto
import (
"strconv"
)
func (runtime *_runtime) newBooleanObject(value Value) *_object {
return runtime.newPrimitiveObject("Boolean", toValue(toBoolean(value)))
}
func booleanToString(value bool) string {
return strconv.FormatBool(value)
}