func bytesToGo(term *ast.Terminal) ([]byte, error) { if term.BytesValue == nil { return nil, &ErrWrongType{"[]byte", term.String()} } return term.GetBytesValue(), nil }