initial commits
parent
f0d1e8a88d
commit
26e17cae3d
|
@ -10,7 +10,7 @@ package frameproto
|
|||
//
|
||||
// var buttonAction string = "post"
|
||||
//
|
||||
// p = frameproto.AppendFrameButton1Action(p, aspectRatio)
|
||||
// p = frameproto.AppendFrameButton1Action(p, buttonAction)
|
||||
//
|
||||
// Would append this HTML <meta/> element:
|
||||
//
|
||||
|
@ -21,18 +21,22 @@ package frameproto
|
|||
//
|
||||
// Which in code would be used as:
|
||||
//
|
||||
// // <meta property="fc:frame:button:1:action" content="link" />
|
||||
// p = frameproto.AppendFrameButton1Action(p, frameproto.ButtonActionLink)
|
||||
//
|
||||
// And:
|
||||
//
|
||||
// // <meta property="fc:frame:button:1:action" content="mint" />
|
||||
// p = frameproto.AppendFrameButton1Action(p, frameproto.ButtonActionMint)
|
||||
//
|
||||
// And:
|
||||
//
|
||||
// // <meta property="fc:frame:button:1:action" content="post" />
|
||||
// str :+ frameproto.AppendFrameButton1Action(p, frameproto.ButtonActionPost)
|
||||
//
|
||||
// And:
|
||||
//
|
||||
// // <meta property="fc:frame:button:1:action" content="post_redirect" />
|
||||
// p = frameproto.AppendFrameButton1Action(p, frameproto.ButtonActionPostRedirect)
|
||||
func AppendFrameButton1Action(p []byte, action string) []byte {
|
||||
const property string = MetaPropertyFrameButton1Action
|
||||
|
|
|
@ -10,7 +10,7 @@ package frameproto
|
|||
//
|
||||
// var buttonAction string = "post"
|
||||
//
|
||||
// p = frameproto.AppendFrameButton2Action(p, aspectRatio)
|
||||
// p = frameproto.AppendFrameButton2Action(p, buttonAction)
|
||||
//
|
||||
// Would append this HTML <meta/> element:
|
||||
//
|
||||
|
@ -21,18 +21,22 @@ package frameproto
|
|||
//
|
||||
// Which in code would be used as:
|
||||
//
|
||||
// // <meta property="fc:frame:button:2:action" content="link" />
|
||||
// p = frameproto.AppendFrameButton2Action(p, frameproto.ButtonActionLink)
|
||||
//
|
||||
// And:
|
||||
//
|
||||
// // <meta property="fc:frame:button:2:action" content="mint" />
|
||||
// p = frameproto.AppendFrameButton2Action(p, frameproto.ButtonActionMint)
|
||||
//
|
||||
// And:
|
||||
//
|
||||
// // <meta property="fc:frame:button:2:action" content="post" />
|
||||
// str :+ frameproto.AppendFrameButton2Action(p, frameproto.ButtonActionPost)
|
||||
//
|
||||
// And:
|
||||
//
|
||||
// // <meta property="fc:frame:button:2:action" content="post_redirect" />
|
||||
// p = frameproto.AppendFrameButton2Action(p, frameproto.ButtonActionPostRedirect)
|
||||
func AppendFrameButton2Action(p []byte, action string) []byte {
|
||||
const property string = MetaPropertyFrameButton2Action
|
||||
|
|
|
@ -10,7 +10,7 @@ package frameproto
|
|||
//
|
||||
// var buttonAction string = "post"
|
||||
//
|
||||
// p = frameproto.AppendFrameButton3Action(p, aspectRatio)
|
||||
// p = frameproto.AppendFrameButton3Action(p, buttonAction)
|
||||
//
|
||||
// Would append this HTML <meta/> element:
|
||||
//
|
||||
|
@ -21,18 +21,22 @@ package frameproto
|
|||
//
|
||||
// Which in code would be used as:
|
||||
//
|
||||
// // <meta property="fc:frame:button:3:action" content="link" />
|
||||
// p = frameproto.AppendFrameButton3Action(p, frameproto.ButtonActionLink)
|
||||
//
|
||||
// And:
|
||||
//
|
||||
// // <meta property="fc:frame:button:3:action" content="mint" />
|
||||
// p = frameproto.AppendFrameButton3Action(p, frameproto.ButtonActionMint)
|
||||
//
|
||||
// And:
|
||||
//
|
||||
// // <meta property="fc:frame:button:3:action" content="post" />
|
||||
// str :+ frameproto.AppendFrameButton3Action(p, frameproto.ButtonActionPost)
|
||||
//
|
||||
// And:
|
||||
//
|
||||
// // <meta property="fc:frame:button:3:action" content="post_redirect" />
|
||||
// p = frameproto.AppendFrameButton3Action(p, frameproto.ButtonActionPostRedirect)
|
||||
func AppendFrameButton3Action(p []byte, action string) []byte {
|
||||
const property string = MetaPropertyFrameButton3Action
|
||||
|
|
|
@ -10,7 +10,7 @@ package frameproto
|
|||
//
|
||||
// var buttonAction string = "post"
|
||||
//
|
||||
// p = frameproto.AppendFrameButton4Action(p, aspectRatio)
|
||||
// p = frameproto.AppendFrameButton4Action(p, buttonAction)
|
||||
//
|
||||
// Would append this HTML <meta/> element:
|
||||
//
|
||||
|
@ -21,18 +21,22 @@ package frameproto
|
|||
//
|
||||
// Which in code would be used as:
|
||||
//
|
||||
// // <meta property="fc:frame:button:4:action" content="link" />
|
||||
// p = frameproto.AppendFrameButton4Action(p, frameproto.ButtonActionLink)
|
||||
//
|
||||
// And:
|
||||
//
|
||||
// // <meta property="fc:frame:button:4:action" content="mint" />
|
||||
// p = frameproto.AppendFrameButton4Action(p, frameproto.ButtonActionMint)
|
||||
//
|
||||
// And:
|
||||
//
|
||||
// // <meta property="fc:frame:button:4:action" content="post" />
|
||||
// str :+ frameproto.AppendFrameButton4Action(p, frameproto.ButtonActionPost)
|
||||
//
|
||||
// And:
|
||||
//
|
||||
// // <meta property="fc:frame:button:4:action" content="post_redirect" />
|
||||
// p = frameproto.AppendFrameButton4Action(p, frameproto.ButtonActionPostRedirect)
|
||||
func AppendFrameButton4Action(p []byte, action string) []byte {
|
||||
const property string = MetaPropertyFrameButton4Action
|
||||
|
|
Loading…
Reference in New Issue