|
|
@@ -34,3 +34,13 @@ var err error
|
|
|
func GetMySection() []string {
|
|
|
return cfg.SectionStrings()
|
|
|
}
|
|
|
+
|
|
|
+func GetMyKey(sezione string,stringa string) *ini.Key {
|
|
|
+ risultato,err := cfg.Section(sezione).GetKey(stringa)
|
|
|
+ if err != nil {
|
|
|
+ fmt.Println("errore nella richiesta chiave",sezione,stringa)
|
|
|
+ os.Exit(3)
|
|
|
+ }
|
|
|
+ return risultato
|
|
|
+}
|
|
|
+
|