20 lines
291 B
Go
20 lines
291 B
Go
package main
|
|
|
|
import (
|
|
"git.behzadan.ir/reza/GoDict/internal/dict"
|
|
)
|
|
|
|
func load(fn string) dict.Dict {
|
|
d, err := dict.LoadYaml(fn)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return d
|
|
}
|
|
|
|
func main() {
|
|
d := load("internal/dict/test_data/dict4.yaml")
|
|
v := d.GetValue("nginx.sites.www")
|
|
v.Print()
|
|
}
|