github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/builtins/types/toml/map.go (about)

     1  package toml
     2  
     3  import (
     4  	"github.com/lmorg/murex/config"
     5  	"github.com/lmorg/murex/lang"
     6  	"github.com/lmorg/murex/lang/stdio"
     7  	toml "github.com/pelletier/go-toml"
     8  )
     9  
    10  func readMap(read stdio.Io, _ *config.Config, callback func(*stdio.Map)) error {
    11  	return lang.MapTemplate(typeName, toml.Marshal, toml.Unmarshal, read, callback)
    12  }