()
| 538 | ) |
| 539 | |
| 540 | func (p Model) String() string { |
| 541 | switch p { |
| 542 | case Model_TREE: return "TREE" |
| 543 | case Model_TABLE: return "TABLE" |
| 544 | } |
| 545 | return "<UNSET>" |
| 546 | } |
| 547 | |
| 548 | func ModelFromString(s string) (Model, error) { |
| 549 | switch s { |
no outgoing calls
no test coverage detected