16 lines
229 B
Go
16 lines
229 B
Go
|
package lib
|
||
|
|
||
|
import (
|
||
|
"gopkg.in/yaml.v2"
|
||
|
"io/ioutil"
|
||
|
)
|
||
|
|
||
|
func processYaml(dst string, opts interface{}) error {
|
||
|
bs, err := yaml.Marshal(api)
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
err = ioutil.WriteFile(dst, bs, 0600)
|
||
|
return err
|
||
|
}
|