Created
October 4, 2018 11:11
-
-
Save tanan/a8c6ff792b0a3d2aab47db59873ee383 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ReadMeshConfig gets mesh configuration from a config file | |
func ReadMeshConfig(filename string) (*meshconfig.MeshConfig, error) { | |
yaml, err := ioutil.ReadFile(filename) | |
if err != nil { | |
return nil, multierror.Prefix(err, "cannot read mesh config file") | |
} | |
return model.ApplyMeshConfigDefaults(string(yaml)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment