go-template-playground

module
v0.1.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2025 License: Apache-2.0

README ΒΆ

Go Template Playground

Mentioned in Awesome Go Go Reference Release Go Report Card codecov Build Deployment GitHub issues 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 and is licensed under the Creative Commons 3.0 Attributions license.

Contributing

All contributions are welcome! See the Contributing Guide for more details.

License

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

Directories ΒΆ

Path Synopsis
cmd
playground command
Playground is a WebAssembly module that provides functions for processing Go templates.
Playground is a WebAssembly module that provides functions for processing Go templates.
internal
codec
Package codec provides encoding and decoding functions for multiple data formats.
Package codec provides encoding and decoding functions for multiple data formats.
jsutil
Package jsutil provides utility functions for interacting with syscall/js.
Package jsutil provides utility functions for interacting with syscall/js.
testutil
Package testutil provides utility functions for testing WebAssembly modules.
Package testutil provides utility functions for testing WebAssembly modules.
tmpl
Package tmpl provides various functions for use in Go templates.
Package tmpl provides various functions for use in Go templates.
util
Package util provides zero-dependency utility types.
Package util provides zero-dependency utility types.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL