From 9c731a4ee0a2236a9ed5943e52f575bbadbcd67c Mon Sep 17 00:00:00 2001 From: Anshul Data Date: Thu, 26 Sep 2024 16:35:54 +0530 Subject: [PATCH] feat: make substrait repo a go module This facilitates substrait assets use in go projects --- core.go | 12 ++++++++++++ go.mod | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 core.go create mode 100644 go.mod diff --git a/core.go b/core.go new file mode 100644 index 000000000..b4aac7dea --- /dev/null +++ b/core.go @@ -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 +} 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