Args parse

This commit is contained in:
Dmitry Sergeev
2026-09-13 13:41:47 +03:00
parent 787b89474c
commit 94ff41a124
5 changed files with 238 additions and 55 deletions
+9
View File
@@ -4,6 +4,7 @@ package flowdef
import (
"encoding/json"
"errors"
"os"
)
const (
@@ -109,3 +110,11 @@ func NewFlowDefJSON(
}
return string(jsonBytes), nil
}
func ReadFlowDefFile(path string) (string, error) {
data, err := os.ReadFile(path)
if err != nil {
return "", err
}
return string(data), nil
}