GetInt returns the nth positional argument as an integer.
(n uint8)
| 47 | |
| 48 | // GetInt returns the nth positional argument as an integer. |
| 49 | func (args PyArgs) GetInt(n uint8) int { |
| 50 | return int(C.PyArg_ParseInt((*C.PyObject)(unsafe.Pointer(args)), C.int(n))) |
| 51 | } |
| 52 | |
| 53 | // GetString returns the nth positional argument as a string. |
| 54 | func (args PyArgs) GetString(n uint8) string { |
no outgoing calls
no test coverage detected