initial commits

master
Charles Iliya Krempeaux 2024-02-15 08:43:52 -08:00
parent 5050382df9
commit f0d1e8a88d
4 changed files with 20 additions and 4 deletions

View File

@ -6,7 +6,7 @@ package frameproto
//
// var buttonAction string = "post"
//
// str := frameproto.StringFrameButton1Action(aspectRatio)
// str := frameproto.StringFrameButton1Action(buttonAction)
//
// Would return this HTML <meta/> element:
//
@ -17,18 +17,22 @@ package frameproto
//
// Which in code would be used as:
//
// // <meta property="fc:frame:button:1:action" content="link" />
// str := frameproto.StringFrameButton1Action(frameproto.ButtonActionLink)
//
// And:
//
// // <meta property="fc:frame:button:1:action" content="mint" />
// str := frameproto.StringFrameButton1Action(frameproto.ButtonActionMint)
//
// And:
//
// // <meta property="fc:frame:button:1:action" content="post" />
// str :+ frameproto.StringFrameButton1Action(frameproto.ButtonActionPost)
//
// And:
//
// // <meta property="fc:frame:button:1:action" content="post_redirect" />
// str := frameproto.StringFrameButton1Action(frameproto.ButtonActionPostRedirect)
func StringFrameButton1Action(action string) string {
const property string = MetaPropertyFrameButton1Action

View File

@ -6,7 +6,7 @@ package frameproto
//
// var buttonAction string = "post"
//
// str := frameproto.StringFrameButton2Action(aspectRatio)
// str := frameproto.StringFrameButton2Action(buttonAction)
//
// Would return this HTML <meta/> element:
//
@ -17,18 +17,22 @@ package frameproto
//
// Which in code would be used as:
//
// // <meta property="fc:frame:button:2:action" content="link" />
// str := frameproto.StringFrameButton2Action(frameproto.ButtonActionLink)
//
// And:
//
// // <meta property="fc:frame:button:2:action" content="mint" />
// str := frameproto.StringFrameButton2Action(frameproto.ButtonActionMint)
//
// And:
//
// // <meta property="fc:frame:button:2:action" content="post" />
// str :+ frameproto.StringFrameButton2Action(frameproto.ButtonActionPost)
//
// And:
//
// // <meta property="fc:frame:button:2:action" content="post_redirect" />
// str := frameproto.StringFrameButton2Action(frameproto.ButtonActionPostRedirect)
func StringFrameButton2Action(action string) string {
const property string = MetaPropertyFrameButton2Action

View File

@ -6,7 +6,7 @@ package frameproto
//
// var buttonAction string = "post"
//
// str := frameproto.StringFrameButton3Action(aspectRatio)
// str := frameproto.StringFrameButton3Action(buttonAction)
//
// Would return this HTML <meta/> element:
//
@ -17,18 +17,22 @@ package frameproto
//
// Which in code would be used as:
//
// // <meta property="fc:frame:button:3:action" content="link" />
// str := frameproto.StringFrameButton3Action(frameproto.ButtonActionLink)
//
// And:
//
// // <meta property="fc:frame:button:3:action" content="mint" />
// str := frameproto.StringFrameButton3Action(frameproto.ButtonActionMint)
//
// And:
//
// // <meta property="fc:frame:button:3:action" content="post" />
// str :+ frameproto.StringFrameButton3Action(frameproto.ButtonActionPost)
//
// And:
//
// // <meta property="fc:frame:button:3:action" content="post_redirect" />
// str := frameproto.StringFrameButton3Action(frameproto.ButtonActionPostRedirect)
func StringFrameButton3Action(action string) string {
const property string = MetaPropertyFrameButton3Action

View File

@ -6,7 +6,7 @@ package frameproto
//
// var buttonAction string = "post"
//
// str := frameproto.StringFrameButton4Action(aspectRatio)
// str := frameproto.StringFrameButton4Action(buttonAction)
//
// Would return this HTML <meta/> element:
//
@ -17,18 +17,22 @@ package frameproto
//
// Which in code would be used as:
//
// // <meta property="fc:frame:button:4:action" content="link" />
// str := frameproto.StringFrameButton4Action(frameproto.ButtonActionLink)
//
// And:
//
// // <meta property="fc:frame:button:4:action" content="mint" />
// str := frameproto.StringFrameButton4Action(frameproto.ButtonActionMint)
//
// And:
//
// // <meta property="fc:frame:button:4:action" content="post" />
// str :+ frameproto.StringFrameButton4Action(frameproto.ButtonActionPost)
//
// And:
//
// // <meta property="fc:frame:button:4:action" content="post_redirect" />
// str := frameproto.StringFrameButton4Action(frameproto.ButtonActionPostRedirect)
func StringFrameButton4Action(action string) string {
const property string = MetaPropertyFrameButton4Action