ToString returns the string representation of the atom.
()
| 20 | |
| 21 | // ToString returns the string representation of the atom. |
| 22 | func (a *Atom) ToString() string { |
| 23 | ptr := C.JS_AtomToCString(a.ctx.ref, a.ref) |
| 24 | defer C.JS_FreeCString(a.ctx.ref, ptr) |
| 25 | return C.GoString(ptr) |
| 26 | } |
| 27 | |
| 28 | // String returns the string representation of the atom. |
| 29 | // This method implements the fmt.Stringer interface. |
no outgoing calls