go-frameproto/appendframebutton4.go

22 lines
594 B
Go
Raw Normal View History

2024-02-15 14:38:13 +00:00
package frameproto
// AppendFrameButton4 will append the HTML <meta/> element for the Frame-Protocol's (i.e., Farcaster Frame's) "fc:frame:button:4" name-value pair.
//
// For example, this call:
//
// var p []byte
//
// // ...
//
// var label string = "go forward"
//
// p = frameproto.AppendFrameButton4(p, label)
//
// Would append this HTML <meta/> element:
//
// <meta property="fc:frame:button:4" content="go forward" />
func AppendFrameButton4(p []byte, label string) []byte {
const property string = MetaPropertyFrameButton4
return appendMetaPropertyContent(p, property, label)
}