package
module
Version:
v0.0.0-...-4f451b9
Opens a new window with list of versions in this module.
Published: Dec 5, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Change File name in the script and provide the path and Comipile the script in goland
{{filename := "cf-aws-fmt.yml"}}
source, err := ioutil.ReadFile(filename)
if err != nil {
panic(err)
}
yaml, err := simpleyaml.NewYaml(source)
if err != nil {
panic(err)
}
//fmt.Printf("VPC Creation enabled")
StackName, _ := yaml.Get("Master").Get("StackName").String()
TemplateURL, _ := yaml.Get("Master").Get("TemplateURL").String()
KubernetesVersion, _ := yaml.Get("Master").Get("KubernetesVersion").String()
NodesSelected, _ := yaml.Get("Master").Get("Nodes").Array()
Documentation
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.