diff --git a/ph7.go b/ph7.go index 0ae2f8d..ca1382c 100644 --- a/ph7.go +++ b/ph7.go @@ -289,7 +289,7 @@ func (c *Context) FunctionName() string { type Value C.ph7_value -// TODO Make *Value a fmt.Formatter, or at least a Stringer. +// TODO Make *Value a fmt.Formatter. func (v *Value) ToInt() int { return int(C.ph7_value_to_int((*C.ph7_value)(v))) @@ -347,6 +347,7 @@ func (v *Value) Double(d float64) error { return newError(C.ph7_value_double((*C.ph7_value)(v), C.double(d))) } +// TODO Rename or remove this so I can make *Value a Stringer. func (v *Value) String(s string) error { cstr := C.CString(s) defer C.free(unsafe.Pointer(cstr))