From d1c6fd882ecea68cbe447ab7d768dbbcf849efd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0lker=20G=2E=20=C3=96zt=C3=BCrk?= Date: Tue, 3 Aug 2021 10:46:46 +0300 Subject: [PATCH] feat: export starport tpl as a Go module (#74) --- flutter.go | 15 +++++++++++++++ go.mod | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 flutter.go create mode 100644 go.mod diff --git a/flutter.go b/flutter.go new file mode 100644 index 00000000..965194d0 --- /dev/null +++ b/flutter.go @@ -0,0 +1,15 @@ +package flutter + +import ( + "embed" + "io/fs" +) + +//go:embed starport_template/* starport_template/** +var app embed.FS + +// Boilerplate is a flutter app starter for Cosmos SDK chains. +func Boilerplate() fs.FS { + f, _ := fs.Sub(app, "starport_template") + return f +} diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..ba7d09d6 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/tendermint/flutter + +go 1.16