HOCON (Human-Optimized Config Object Notation)Currently, some features are not implemented, the API might be a little changed in the future.
example.go
package main
import (
"fmt"
"github.com/go-akka/configuration"
)
var configText = `
####################################
# Typesafe HOCON #
####################################
config {
# Comment
version = "0.0.1"
one-second = 1s
one-day = 1day
array = ["one", "two", "three"] #comment
bar = "bar"
foo = foo.${config.bar}
number = 1
object {
a = "a"
b = "b"
c = {
d = ${config.object.a} //comment
}
}
}
// fallbac