X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/47e42f1129363c2565e69c36ff26ce9c42731fb8..d235817fee3a904eeff85381c1a5227474900852:/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) +}