(value string)
| 113 | } |
| 114 | |
| 115 | func ParseCheckbox(value string) (bool, string, string) { |
| 116 | value = strings.TrimLeft(strings.ToLower(value), "- ") |
| 117 | |
| 118 | if strings.HasPrefix(value, "[x]") { |
| 119 | return true, "true", "" |
| 120 | } else if strings.HasPrefix(value, "[]") || strings.HasPrefix(value, "[ ]") { |
| 121 | return true, "false", "" |
| 122 | } |
| 123 | |
| 124 | return false, value, "could not parse checkbox" |
| 125 | } |
| 126 | |
| 127 | func ParseNumber(value string) (bool, int, string) { |
| 128 | cleanedString := "" |
nothing calls this directly
no outgoing calls
no test coverage detected