Documentation
¶
Overview ¶
Package t03helloparam shows how to create a custom hello world component, instead of just using a function as shown in package t01helloworld. To do so, just aggregate a view.View into your custom struct and implement a 'func Render() view.Node' method, so that your new component actually conforms to the view.Component interface. Note also the usage of the query parameter 'name' to say hello.
Index ¶
Constants ¶
View Source
const Path = "/tutorial/03-helloparam?name=world"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContentView ¶
func NewContentView ¶
func NewContentView(msg string) *ContentView
func (*ContentView) Render ¶
func (c *ContentView) Render() gt.Node
Click to show internal directories.
Click to hide internal directories.