encoding/yaml: expose internal yaml functionality
Only the plain function API is exposed for now.
The Decoder and Encoder are still to be done.
Change-Id: I7e003c59c2dc3bd89896336fc24a7ace39cc5f92
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/2564
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
diff --git a/internal/third_party/yaml/yaml.go b/internal/third_party/yaml/yaml.go
index 08821c8..20ef3a1 100644
--- a/internal/third_party/yaml/yaml.go
+++ b/internal/third_party/yaml/yaml.go
@@ -94,8 +94,8 @@
//
// The decoder introduces its own buffering and may read
// data from r beyond the YAML values requested.
-func NewDecoder(filename string, r io.Reader) (*Decoder, error) {
- d, err := newParser(filename, r)
+func NewDecoder(filename string, src interface{}) (*Decoder, error) {
+ d, err := newParser(filename, src)
if err != nil {
return nil, err
}