示例#1
0
func (val_ *Value) ToString() string {
	cstring_ := C.V8_Value_ToString(val_.self)
	gostring_ := C.GoString(cstring_)
	C.free(unsafe.Pointer(cstring_))
	return gostring_
}
示例#2
0
文件: v8_value.go 项目: yangou/go-v8
func (v *Value) ToString() string {
	cstring := C.V8_Value_ToString(v.self)
	gostring := C.GoString(cstring)
	C.free(unsafe.Pointer(cstring))
	return gostring
}