pkger_demo

command module
v2.0.0-...-3c1e426 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: MIT Imports: 8 Imported by: 0

README

fgm/pkger-demo V2

A short demo using Go embed to load templates

Features

This demo shows how to load multiple templates from embed using the embed.FS methods instead of traditional io|ioutil file access, or the legacy markbates/pkger contributed package.

Requirements

  • Go 1.16 or later

Building

  • go build .: compile the file, bundling the templates in the binary.
  • You can now modify or delete the templates without changing the program output.

Going further

License

MIT.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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