We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package someComponent type Comp struct { GooxComponent } func (c *Comp) Render() GooxComponent { return ( <div class="some-component"> {c.Childs} </div> ) }
package template import "someComponent" func Render() GooxComponent { var s = <span>span from var</span> return ( <someComponent.Comp> <div class="abc" style={ GooxStyle{ Padding: 10 } }> <p>Goox demo</p> {s} </div> </someComponent.Comp> ) }
package main import ( "template" "fmt" ) func main() { fmt.Println(template.Render()) }
should print in console:
<div class="some-component"> <div class="abc" style="padding: 10px"> <p>Goox demo</p> <span>span from var</span> </div> </div>
also should be printable as a struct with fmt.Printf("%#+v", gooxcomp) and be compatible to work with struct syntax like gooxcomp.Style.Padding
fmt.Printf("%#+v", gooxcomp)
gooxcomp.Style.Padding
The text was updated successfully, but these errors were encountered:
@aleksei0807 +1
Sorry, something went wrong.
No branches or pull requests
should print in console:
also should be printable as a struct with
fmt.Printf("%#+v", gooxcomp)
and be compatible to work with struct syntax likegooxcomp.Style.Padding
The text was updated successfully, but these errors were encountered: