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