Skip to content

Commit

Permalink
feat: make substrait repo a go module (#712)
Browse files Browse the repository at this point in the history
This facilitates substrait assets use in go projects
  • Loading branch information
anshuldata authored Oct 1, 2024
1 parent f796521 commit 3dca9b5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions core.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Package substrait provides access to Substrait artifacts via embed.FS.
// Use substrait.GetSubstraitFS() to retrieve the embed.FS object.
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 3dca9b5

Please sign in to comment.