Innitial Commit

+added Base Project Version 0.0.1
This commit is contained in:
2026-05-03 01:13:59 +02:00
commit 321f4a5bad
8 changed files with 745 additions and 0 deletions

20
internal/config/config.go Normal file
View File

@@ -0,0 +1,20 @@
package config
import (
"os"
"pdev-ssh/internal/models"
"gopkg.in/yaml.v3"
)
func LoadConfig(path string) (models.AppConfig, error) {
var cfg models.AppConfig
data, err := os.ReadFile(path)
if err != nil {
return cfg, err
}
err = yaml.Unmarshal(data, &cfg)
return cfg, err
}