go-frameproto/writeframebutton3.go

22 lines
585 B
Go
Raw Normal View History

2024-02-13 19:16:05 +00:00
package frameproto
import (
"io"
)
// WriteFrameButton3 will write the HTML <meta/> element for the Frame-Protocol's (i.e., Farcaster Frame's) "fc:frame:button:3" name-value pair.
//
// For example, this call:
//
// var label string = "go forward"
//
// frameproto.WriteFrameButton3(writer, label)
//
// Would write this HTML <meta/> element:
//
// <meta property="fc:frame:button:3" content="go forward" />
2024-02-15 17:43:14 +00:00
func WriteFrameButton3(writer io.Writer, label string) error {
2024-02-13 19:16:05 +00:00
const property string = MetaPropertyFrameButton3
2024-02-15 17:43:14 +00:00
return writeMetaPropertyContent(writer, property, label)
2024-02-13 19:16:05 +00:00
}