From 812ff417f55857c4ac897b013e323003dc8d293a Mon Sep 17 00:00:00 2001 From: Vojtech Vitek Date: Wed, 3 Apr 2024 16:34:20 +0200 Subject: [PATCH] Expose as Go module with //go:embed FS --- embed.go | 6 ++++++ go.mod | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 embed.go create mode 100644 go.mod diff --git a/embed.go b/embed.go new file mode 100644 index 0000000..2e3709d --- /dev/null +++ b/embed.go @@ -0,0 +1,6 @@ +package golang + +import "embed" + +//go:embed *.go.tmpl +var FS embed.FS diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..8f4e259 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/webrpc/gen-golang + +go 1.16