projects
/
platform
/
core
/
system
/
edge-orchestration.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
24d673dd26ac2754ba9838a46972877fad1b9ef4
[platform/core/system/edge-orchestration.git]
/
src
/
configuremgr
/
incubator
/
sconf_example.go
1
package main
2
3
import (
4
"fmt"
5
"gopkg.in/sconf/ini.v0"
6
"gopkg.in/sconf/sconf.v0"
7
)
8
9
func main() {
10
Example()
11
}
12
13
func Example() {
14
var cfg = struct {
15
Main struct {
16
Url string
17
}
18
}{}
19
sconf.Must(&cfg).Read(ini.File("./src/configuremgr/incubator/example.ini"))
20
fmt.Println(cfg.Main.Url)
21
// Output: http://localhost/
22
}