GetString returns the nth positional argument as a string.
(n uint8)
| 52 | |
| 53 | // GetString returns the nth positional argument as a string. |
| 54 | func (args PyArgs) GetString(n uint8) string { |
| 55 | return fromRawOb(C.PyArg_ParseString((*C.PyObject)(unsafe.Pointer(args)), C.int(n))).String() |
| 56 | } |
| 57 | |
| 58 | // GetStringSlice returns the nth argument as a slice of string values. |
| 59 | func (args PyArgs) GetStringSlice(n uint8) ([]string, error) { |