From ddc29c805cdded221123eb227e4d16ef6c0c9571 Mon Sep 17 00:00:00 2001 From: smnrgcl Date: Sat, 20 Apr 2024 13:11:48 +0300 Subject: [PATCH] Add yaml file for control feature --- .github/workflows/control-feature.yaml | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/control-feature.yaml diff --git a/.github/workflows/control-feature.yaml b/.github/workflows/control-feature.yaml new file mode 100644 index 0000000..aa39e60 --- /dev/null +++ b/.github/workflows/control-feature.yaml @@ -0,0 +1,28 @@ +package main + +import ( + "fmt" + "io/ioutil" + "log" +) + +func main() { + // YAML data as a string + yamlData := ` +control_feature: + name: "Control Feature" + description: "This YAML file is used to control the feature." + version: 1.0 + active: true + details: + - detail1 + - detail2 +` + // Write YAML data to a file named "control_feature.yaml" + err := ioutil.WriteFile("control_feature.yaml", []byte(yamlData), 0644) + if err != nil { + log.Fatalf("Error writing file: %v", err) + } + + fmt.Println("YAML file created: control_feature.yaml") +}