(attrs ...any)
| 47 | ) |
| 48 | |
| 49 | func tobj(attrs ...any) typ { |
| 50 | res := typ{Type: "object"} |
| 51 | if len(attrs) == 0 { |
| 52 | res.SkipProps = true |
| 53 | } |
| 54 | for i := 0; i < len(attrs); i += 2 { |
| 55 | res.Props = append(res.Props, attr{Name: attrs[i].(string), Val: attrs[i+1].(typ)}) |
| 56 | } |
| 57 | return res |
| 58 | } |
| 59 | |
| 60 | func tmap() typ { |
| 61 | return typ{Type: "object", Props: []attr{{Name: "map", Val: typ{Type: "object"}}}} |
no outgoing calls
no test coverage detected