Updated todo list

This commit is contained in:
Brandon Dyck 2022-11-27 21:53:51 -07:00
parent 28e7040a09
commit 13d3d640ec

3
ph7.go
View File

@ -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))