Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time

+++ title = "Embed Resources Recipe" description = "Embed resources recipe for Echo" [menu.main] name = "Embed Resources" parent = "cookbook" +++

With go.rice

server.go

{{< embed "embed-resources/server.go" >}}

[Source Code]({{< source "embed-resources" >}})

With go 1.16 embed feature

server.go

{{< embed "embed/server.go" >}}

[Source Code]({{< source "embed" >}})