This is an experimental Go parser implementation for HUML (Human-oriented Markup Language). The API is similar to encoding/json.
package main
import (
"fmt"
"github.com/huml-lang/go-huml"
)
func main() {
var result map[string]any
if err := Unmarshal([]byte(doc), &result); err != nil {
panic(err)
}
fmt.Println(v)
}package main
import (
"fmt"
"github.com/huml-lang/go-huml"
)
func main() {
res, err := Marshal(stuff);
if err != nil {
panic(err)
}
fmt.Println(string(res))
}This project uses git submodules for test data. After cloning the repository, initialize the submodules:
git submodule update --init --recursiveThis will pull the test cases from the huml-lang/tests repository into the tests/ directory.
MIT License