diff --git a/core.go b/core.go new file mode 100644 index 000000000..201c31dd8 --- /dev/null +++ b/core.go @@ -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 +} diff --git a/go.mod b/go.mod new file mode 100644 index 000000000..4e27b385e --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/substrait-io/substrait + +go 1.22.0