Encode writes serialized Values information to the given io.Writer.
(w io.Writer)
| 73 | |
| 74 | // Encode writes serialized Values information to the given io.Writer. |
| 75 | func (v Values) Encode(w io.Writer) error { |
| 76 | out, err := yaml.Marshal(v) |
| 77 | if err != nil { |
| 78 | return err |
| 79 | } |
| 80 | _, err = w.Write(out) |
| 81 | return err |
| 82 | } |
| 83 | |
| 84 | func tableLookup(v Values, simple string) (Values, error) { |
| 85 | v2, ok := v[simple] |
no test coverage detected