func readPotentialString(r *bufio.Reader) (string, bool) { res, _ := sexp.ReadValue(r) if res != nil { if tres, ok := res.(sexp.Sstring); ok { return tres.Value().(string), true } } return "", false }
func readPotentialBigNum(r *bufio.Reader) (*big.Int, bool) { res, _ := sexp.ReadValue(r) if res != nil { if tres, ok := res.(sexp.BigNum); ok { return tres.Value().(*big.Int), true } } return nil, false }