mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-01-24 05:28:36 -06:00
Add convenience function for creating a B element with a text node
This commit is contained in:
@@ -119,3 +119,9 @@ func PText(text string) gomponents.Node {
|
||||
func SpanText(text string) gomponents.Node {
|
||||
return html.Span(gomponents.Text(text))
|
||||
}
|
||||
|
||||
// BText is a convenience function to create a B element with a
|
||||
// simple text node as its child.
|
||||
func BText(text string) gomponents.Node {
|
||||
return html.B(gomponents.Text(text))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user