X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6c0bf267d795a3ca49c3258c9490714c9e18d333..15aca78766bda903480e327340d67d3d882ee69f:/sdk/go/config/load.go diff --git a/sdk/go/config/load.go b/sdk/go/config/load.go index 9c65d65e84..2bbb440fb3 100644 --- a/sdk/go/config/load.go +++ b/sdk/go/config/load.go @@ -22,3 +22,8 @@ func LoadFile(cfg interface{}, configPath string) error { } return nil } + +// Dump returns a YAML representation of cfg. +func Dump(cfg interface{}) ([]byte, error) { + return yaml.Marshal(cfg) +}