Skip to content

Commit 812ff41

Browse files
committed
Expose as Go module with //go:embed FS
1 parent a0e2a50 commit 812ff41

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

embed.go

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package golang
2+
3+
import "embed"
4+
5+
//go:embed *.go.tmpl
6+
var FS embed.FS

go.mod

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/webrpc/gen-golang
2+
3+
go 1.16

0 commit comments

Comments
 (0)