ErdemOzgen / blackdagger

Blackdagger is a DAG-based automation tool specifically used in DevOps, DevSecOps, MLOps, MLSecOps, and Continuous Red Teaming (CART).
https://blackdagger.readthedocs.io/
GNU General Public License v3.0
48 stars 8 forks source link

Default yaml files for binary #13

Closed ErdemOzgen closed 8 months ago

ErdemOzgen commented 8 months ago

package main

import ( "embed" "io/fs" "log" )

//go:embed examples/*.yaml var yamlFiles embed.FS

func main() { // Example of accessing an embedded file content, err := fs.ReadFile(yamlFiles, "examples/chatgpt.yaml") // Adjust "example/myfile.yaml" as necessary if err != nil { log.Fatal(err) } log.Printf("Contents of myfile.yaml: %s", content) }