Skip to content

Commit

Permalink
feat: make substrait repo a go module
Browse files Browse the repository at this point in the history
This facilitates substrait assets use in go projects
  • Loading branch information
anshuldata committed Sep 26, 2024
1 parent 1f3354d commit 9c731a4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions core.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package substrait

import "embed"

// Add all directories which should be exposed in below
//
//go:embed extensions/*
var substraitFS embed.FS

func GetSubstraitFS() embed.FS {
return substraitFS
}
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/substrait-io/substrait

go 1.22.0

0 comments on commit 9c731a4

Please sign in to comment.