Text to Go Struct
Not logged in

About

This application allows converting JSON, TOML and/or YAML text to a Go struct.

Ref: Golang Config Files Read

Technical Details

Text Parsing

This application uses the ChimeraCoder/gojson package to convert JSON to a Go struct.

TOML conversion uses the pelletier/go-toml and the encoding/json packages to convert TOML to JSON then uses the gojson package to convert to a Go struct.

YAML conversion uses the go-yaml/yaml and the encoding/json packages to convert YAML to JSON then uses the gojson package to convert to a Go struct.

Copying resultant struct text to the clipboard uses the golang-design/clipboard package.

User Interface

This application uses Wails (v2) to render a user interface from web application components.

This Wails project was created using the htmx-templ-wails-template remote Wails template which uses the templ templating language for golang and the HTMX web application framework.