manifestString expects the value to be a string and returns it.
(buf *bytes.Buffer, v value)
| 893 | |
| 894 | // manifestString expects the value to be a string and returns it. |
| 895 | func (i *interpreter) manifestString(buf *bytes.Buffer, v value) error { |
| 896 | switch v := v.(type) { |
| 897 | case valueString: |
| 898 | buf.WriteString(v.getGoString()) |
| 899 | return nil |
| 900 | default: |
| 901 | return makeRuntimeError(fmt.Sprintf("expected string result, got: %s", v.getType().name), i.getCurrentStackTrace()) |
| 902 | } |
| 903 | } |
| 904 | |
| 905 | func (i *interpreter) manifestAndSerializeMulti(v value, stringOutputMode bool, outputNewline bool) (r map[string]string, err error) { |
| 906 | r = make(map[string]string) |
no test coverage detected