31-websockets-commands-using-templates-via-websocket

command
v0.0.0-...-9882766 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Test loading templates, and use them to be drawn via a websocket to the browser. The element that is made in the browser can then be deleted. The templates are being parsed normally but instead of executing the template to http.ResponseWrite, we execute it to a bytes.Buffer which got a io.Writer, and we then send that buffer over the websocket.

Jump to

Keyboard shortcuts

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