go-frameproto/writeframeinputtext.go

22 lines
602 B
Go

package frameproto
import (
"io"
)
// WriteFrameInputText will write the HTML <meta/> element for the Frame-Protocol's (i.e., Farcaster Frame's) "fc:frame:input:text" name-value pair.
//
// For example, this call:
//
// var label string = "enter your username"
//
// frameproto.WriteFrameInputText(writer, label)
//
// Would write this HTML <meta/> element:
//
// <meta property="fc:frame:input:text" content="enter your username" />
func WriteFrameInputText(writer io.Writer, label string) {
const property string = MetaPropertyFrameInputText
writeMetaPropertyContent(writer, property, label)
}