22 lines
629 B
Go
22 lines
629 B
Go
package frameproto
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
// WriteFramePostURL will write the HTML <meta/> element for the Frame-Protocol's (i.e., Farcaster Frame's) "fc:frame:post_url" name-value pair.
|
|
//
|
|
// For example, this call:
|
|
//
|
|
// var url string = "https://example.com/my/post/path.php"
|
|
//
|
|
// frameproto.WriteFramePostURL(writer, url)
|
|
//
|
|
// Would write this HTML <meta/> element:
|
|
//
|
|
// <meta property="fc:frame:post_url" content="https://example.com/my/post/path.php" />
|
|
func WriteFramePostURL(writer io.Writer, url string) error {
|
|
const property string = MetaPropertyFramePostURL
|
|
return writeMetaPropertyContent(writer, property, url)
|
|
}
|