From d4b94e4b37bb4b28dae2a91bf4a9872e0a801c1a Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Sat, 17 Dec 2016 06:05:07 -0800 Subject: moving reference into content package and testing API based approach --- content/reference.go | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 content/reference.go (limited to 'content/reference.go') diff --git a/content/reference.go b/content/reference.go new file mode 100644 index 0000000..0853b3d --- /dev/null +++ b/content/reference.go @@ -0,0 +1,57 @@ +package content + +import ( + "encoding/json" + "fmt" + "log" + + "github.com/bosssauce/ponzu/management/editor" + "github.com/bosssauce/ponzu/system/api" +) + +// Referenceable enures there is a way to reference the implenting type from +// within another type's editor and from type-scoped API calls +type Referenceable interface { + Referenced() []byte +} + +// Select returns the []byte of a