Echo
Echo is a component that execute the code of lambda function and display the code of lambda function.
API
func Echo(c *tgframe.Container, code string, lambda func())
Parameters
c: Parent container.code: Code of current file. The user should use go embed syntax to embed the code.lambda: Lambda function to execute.
Example
tgcomp.Echo(p.Main, code, func() {
tgcomp.Text(p.Main, "hello echo")
})