Skip to content

Instantly share code, notes, and snippets.

@Sh3r4
Sh3r4 / embedTemplatesDir.go
Last active October 20, 2021 02:21
abstraction boilerplate for dealing with templates
package main
import (
"embed"
"text/template"
)
// embed the entire templates directory
//go:embed templates
var templates embed.FS
alert('injection proof')

Keybase proof

I hereby claim:

  • I am sectorsect on github.
  • I am tiosect (https://keybase.io/tiosect) on keybase.
  • I have a public key ASBFzZ9M_IUQHfEXHrzO1tqI39P9k1_JWiWdoZod5wh5Ggo

To claim this, I am signing this object: