initial commits

master
Charles Iliya Krempeaux 2024-02-15 08:41:33 -08:00
parent a22d4dbcf3
commit 5050382df9
4 changed files with 20 additions and 4 deletions

View File

@ -10,7 +10,7 @@ import (
// //
// var buttonAction string = "post" // var buttonAction string = "post"
// //
// frameproto.WriteFrameButton1Action(writer, aspectRatio) // frameproto.WriteFrameButton1Action(writer, buttonAction)
// //
// Would write this HTML <meta/> element: // Would write this HTML <meta/> element:
// //
@ -21,18 +21,22 @@ import (
// //
// Which in code would be used as: // Which in code would be used as:
// //
// // <meta property="fc:frame:button:1:action" content="link" />
// frameproto.WriteFrameButton1Action(writer, frameproto.ButtonActionLink) // frameproto.WriteFrameButton1Action(writer, frameproto.ButtonActionLink)
// //
// And: // And:
// //
// // <meta property="fc:frame:button:1:action" content="mint" />
// frameproto.WriteFrameButton1Action(writer, frameproto.ButtonActionMint) // frameproto.WriteFrameButton1Action(writer, frameproto.ButtonActionMint)
// //
// And: // And:
// //
// // <meta property="fc:frame:button:1:action" content="post" />
// frameproto.WriteFrameButton1Action(writer, frameproto.ButtonActionPost) // frameproto.WriteFrameButton1Action(writer, frameproto.ButtonActionPost)
// //
// And: // And:
// //
// // <meta property="fc:frame:button:1:action" content="post_redirect" />
// frameproto.WriteFrameButton1Action(writer, frameproto.ButtonActionPostRedirect) // frameproto.WriteFrameButton1Action(writer, frameproto.ButtonActionPostRedirect)
func WriteFrameButton1Action(writer io.Writer, action string) { func WriteFrameButton1Action(writer io.Writer, action string) {
const property string = MetaPropertyFrameButton1Action const property string = MetaPropertyFrameButton1Action

View File

@ -10,7 +10,7 @@ import (
// //
// var buttonAction string = "post" // var buttonAction string = "post"
// //
// frameproto.WriteFrameButton2Action(writer, aspectRatio) // frameproto.WriteFrameButton2Action(writer, buttonAction)
// //
// Would write this HTML <meta/> element: // Would write this HTML <meta/> element:
// //
@ -21,18 +21,22 @@ import (
// //
// Which in code would be used as: // Which in code would be used as:
// //
// // <meta property="fc:frame:button:2:action" content="link" />
// frameproto.WriteFrameButton2Action(writer, frameproto.ButtonActionLink) // frameproto.WriteFrameButton2Action(writer, frameproto.ButtonActionLink)
// //
// And: // And:
// //
// // <meta property="fc:frame:button:2:action" content="mint" />
// frameproto.WriteFrameButton2Action(writer, frameproto.ButtonActionMint) // frameproto.WriteFrameButton2Action(writer, frameproto.ButtonActionMint)
// //
// And: // And:
// //
// // <meta property="fc:frame:button:2:action" content="post" />
// frameproto.WriteFrameButton2Action(writer, frameproto.ButtonActionPost) // frameproto.WriteFrameButton2Action(writer, frameproto.ButtonActionPost)
// //
// And: // And:
// //
// // <meta property="fc:frame:button:2:action" content="post_redirect" />
// frameproto.WriteFrameButton2Action(writer, frameproto.ButtonActionPostRedirect) // frameproto.WriteFrameButton2Action(writer, frameproto.ButtonActionPostRedirect)
func WriteFrameButton2Action(writer io.Writer, action string) { func WriteFrameButton2Action(writer io.Writer, action string) {
const property string = MetaPropertyFrameButton2Action const property string = MetaPropertyFrameButton2Action

View File

@ -10,7 +10,7 @@ import (
// //
// var buttonAction string = "post" // var buttonAction string = "post"
// //
// frameproto.WriteFrameButton3Action(writer, aspectRatio) // frameproto.WriteFrameButton3Action(writer, buttonAction)
// //
// Would write this HTML <meta/> element: // Would write this HTML <meta/> element:
// //
@ -21,18 +21,22 @@ import (
// //
// Which in code would be used as: // Which in code would be used as:
// //
// // <meta property="fc:frame:button:3:action" content="link" />
// frameproto.WriteFrameButton3Action(writer, frameproto.ButtonActionLink) // frameproto.WriteFrameButton3Action(writer, frameproto.ButtonActionLink)
// //
// And: // And:
// //
// // <meta property="fc:frame:button:3:action" content="mint" />
// frameproto.WriteFrameButton3Action(writer, frameproto.ButtonActionMint) // frameproto.WriteFrameButton3Action(writer, frameproto.ButtonActionMint)
// //
// And: // And:
// //
// // <meta property="fc:frame:button:3:action" content="post" />
// frameproto.WriteFrameButton3Action(writer, frameproto.ButtonActionPost) // frameproto.WriteFrameButton3Action(writer, frameproto.ButtonActionPost)
// //
// And: // And:
// //
// // <meta property="fc:frame:button:3:action" content="post_redirect" />
// frameproto.WriteFrameButton3Action(writer, frameproto.ButtonActionPostRedirect) // frameproto.WriteFrameButton3Action(writer, frameproto.ButtonActionPostRedirect)
func WriteFrameButton3Action(writer io.Writer, action string) { func WriteFrameButton3Action(writer io.Writer, action string) {
const property string = MetaPropertyFrameButton3Action const property string = MetaPropertyFrameButton3Action

View File

@ -10,7 +10,7 @@ import (
// //
// var buttonAction string = "post" // var buttonAction string = "post"
// //
// frameproto.WriteFrameButton4Action(writer, aspectRatio) // frameproto.WriteFrameButton4Action(writer, buttonAction)
// //
// Would write this HTML <meta/> element: // Would write this HTML <meta/> element:
// //
@ -21,18 +21,22 @@ import (
// //
// Which in code would be used as: // Which in code would be used as:
// //
// // <meta property="fc:frame:button:4:action" content="link" />
// frameproto.WriteFrameButton4Action(writer, frameproto.ButtonActionLink) // frameproto.WriteFrameButton4Action(writer, frameproto.ButtonActionLink)
// //
// And: // And:
// //
// // <meta property="fc:frame:button:4:action" content="mint" />
// frameproto.WriteFrameButton4Action(writer, frameproto.ButtonActionMint) // frameproto.WriteFrameButton4Action(writer, frameproto.ButtonActionMint)
// //
// And: // And:
// //
// // <meta property="fc:frame:button:4:action" content="post" />
// frameproto.WriteFrameButton4Action(writer, frameproto.ButtonActionPost) // frameproto.WriteFrameButton4Action(writer, frameproto.ButtonActionPost)
// //
// And: // And:
// //
// // <meta property="fc:frame:button:4:action" content="post_redirect" />
// frameproto.WriteFrameButton4Action(writer, frameproto.ButtonActionPostRedirect) // frameproto.WriteFrameButton4Action(writer, frameproto.ButtonActionPostRedirect)
func WriteFrameButton4Action(writer io.Writer, action string) { func WriteFrameButton4Action(writer io.Writer, action string) {
const property string = MetaPropertyFrameButton4Action const property string = MetaPropertyFrameButton4Action