go-frameproto/writeframebutton4.go

22 lines
585 B
Go
Raw Permalink Normal View History

2024-02-13 19:17:24 +00:00
package frameproto
import (
"io"
)
// WriteFrameButton4 will write 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 label string = "go forward"
//
// frameproto.WriteFrameButton4(writer, label)
//
// Would write this HTML <meta/> element:
//
// <meta property="fc:frame:button:4" content="go forward" />
2024-02-15 17:43:14 +00:00
func WriteFrameButton4(writer io.Writer, label string) error {
2024-02-13 19:17:24 +00:00
const property string = MetaPropertyFrameButton4
2024-02-15 17:43:14 +00:00
return writeMetaPropertyContent(writer, property, label)
2024-02-13 19:17:24 +00:00
}