From 86903a797ae2fd7e72fb9c9cd4eabf2c3cd02c0c Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Thu, 15 Feb 2024 09:10:09 -0800 Subject: [PATCH] initial commits --- buttonactions.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/buttonactions.go b/buttonactions.go index f59daa6..0226896 100644 --- a/buttonactions.go +++ b/buttonactions.go @@ -1,5 +1,28 @@ package frameproto +// These constants are 'values' in name-value pairs used with HTML elements by the frame-protocol, when the name is of the form "fc:frame:button:*:action". +// I.e., when the name is: "fc:frame:button:1:action", "fc:frame:button:2:action", "fc:frame:button:3:action", or "fc:frame:button:4:action". +// +// For example: +// +// +// +// +// +// +// The way these would be used are: +// +// frameproto.WriteFrameButton1Action(writer, frameproto.ButtonActionLink) +// +// And: +// +// p = frameproto.AppendFrameButton2Action(p, frameproto.ButtonActionMint) +// +// And: +// +// s = frameproto.FrameButton3Action(p, frameproto.ButtonActionPost) +// +// Etc. const ( ButtonActionLink = "link" ButtonActionMint = "mint"