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