Skip to content

Commit

Permalink
Expose as a Go module with //go:embed FS (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVitek committed Apr 4, 2024
1 parent 52e43d8 commit 359a1b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions embed.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package openapi

import "embed"

//go:embed *.go.tmpl
var FS embed.FS
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/webrpc/gen-openapi

go 1.16

0 comments on commit 359a1b3

Please sign in to comment.