X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a5445a2ae553b0723d8579462bcb48855f71a17c..0e2f3e506566b1ceb54bd764d3f32c004e45f8b3:/sdk/go/config/load.go diff --git a/sdk/go/config/load.go b/sdk/go/config/load.go index 9c65d65e84..cab09c74e8 100644 --- a/sdk/go/config/load.go +++ b/sdk/go/config/load.go @@ -1,3 +1,7 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: Apache-2.0 + package config import ( @@ -22,3 +26,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) +}