HAProxy config parser for Golang, but under development.
- It parses HAProxy config and binds to golang struct.
- Analysis ACL, make its reference beteen frontend and backends.
main.go
package main
import (
"fmt"
"github.com/tkmgo/haproxyconfigparser"
)
func main() {
config, _ := haproxyconfigparser.ParseFromStdin()
fmt.Println(config)
}
$ cat haproxy.cfg | go run main.go