3 ms·
A "mithril" like syntax. Like you could do (wrapped over multiple lines of course) m.div([m.h1("title"), m.p(["click", m.a({href:"..."}, "me")])]) you can do
by red_admiral 6mo ago
A "mithril" like syntax. Like you could do (wrapped over multiple lines of course)
m.div([m.h1("title"), m.p(["click", m.a({href:"..."}, "me")])])
you can do (taken from the page)
g.VStack(g.Text(...), g.HStack(...).Spacing(g.SpaceMD))
some people will like this style, others not.
- neomantra 6mo agoThe repo doesn't say it, but the Author noted on the Gophers Slack #showandtell that the style was inspired by SwiftUI. That VStack example shows it quite well.