(s string)
| 33 | } |
| 34 | |
| 35 | func ExtractStringValue(s string) (string, error) { |
| 36 | if len(s) >= 2 && s[0] == '\'' && s[len(s)-1] == '\'' { |
| 37 | return s[1 : len(s)-1], nil |
| 38 | } |
| 39 | return "", fmt.Errorf("value %s is not a string value", s) |
| 40 | } |
| 41 | |
| 42 | func ExtractIntValue(s string) (int, error) { |
| 43 | intValue, err := strconv.Atoi(s) |