An open API service indexing awesome lists of open source software.

https://bartventer.github.io/go-template-playground/

An interactive environment to create and test Go templates.
https://bartventer.github.io/go-template-playground/

go go-templates golang wasm

Last synced: 29 days ago
JSON representation

An interactive environment to create and test Go templates.

Awesome Lists containing this project

README

        

# Go Template Playground

[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)
[![Go Reference](https://pkg.go.dev/badge/github.com/bartventer/go-template-playground.svg)](https://pkg.go.dev/github.com/bartventer/go-template-playground)
[![Release](https://img.shields.io/github/release/bartventer/go-template-playground.svg)](https://github.com/bartventer/go-template-playground/releases/latest)
[![Go Report Card](https://goreportcard.com/badge/github.com/bartventer/go-template-playground)](https://goreportcard.com/report/github.com/bartventer/go-template-playground)
[![codecov](https://codecov.io/github/bartventer/go-template-playground/graph/badge.svg?token=qo69e1oQoj)](https://codecov.io/github/bartventer/go-template-playground)
[![Build](https://github.com/bartventer/go-template-playground/actions/workflows/default.yml/badge.svg)](https://github.com/bartventer/go-template-playground/actions/workflows/default.yml)
[![Deployment](https://github.com/bartventer/go-template-playground/actions/workflows/deploy.yml/badge.svg)](https://github.com/bartventer/go-template-playground/actions/workflows/deploy.yml)
![GitHub issues](https://img.shields.io/github/issues/bartventer/go-template-playground)
[![License](https://img.shields.io/github/license/bartventer/go-template-playground.svg)](LICENSE)

An interactive environment to create and test Go templates. The playground runs entirely in the browser without any server-side processing. It uses WebAssembly to execute Go code in the browser.


Go Template Playground Demo



Try it out

## Features

- 🌑 Dark mode
- ✨ Code autocomplete
- 📝 Input editor for Go template language syntax
- 📄 Data input editor supporting JSON, YAML, and TOML, with automatic conversion between formats
- 🖨️ Output editor with support for plaintext and Markdown, including a built-in Markdown viewer
- 🔍 Syntax highlighting
- 📐 Responsive design
- 🎨 Customizable layout
- 📤 Import and export templates and data
- 🚀 No server-side processing
- 🔒 No tracking or analytics

## Credits

The Go gopher was designed by [Renee French](https://reneefrench.blogspot.com/) and is licensed under the [Creative Commons 3.0 Attributions license](https://creativecommons.org/licenses/by/3.0/).

## Contributing

All contributions are welcome! See the [Contributing Guide](CONTRIBUTING.md) for more details.

## License

This project is licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for more information.