Gas — components based UI library written in golang
Gas is modular, it consists of:
Far this moment exists only web backend which allow you to create modern web application using only golang. You, of course, can use HTML, CSS and other web technologies
Elements (*gas.Element
) are the building blocks of the application. Element fields:
gas.Map
- alias for map[string]string
. It's function because sometimes you need make attribute dynamic.func() string
result replace in element inner htmlComponents (*gas.Component
) are the way to create elements with state. You manage some data in your own state (basically in structure) and update view by calling Component.Update(). To be used thy are rendered to Element by Init method. Components fields:
Render func()[]interface{}
method. You create structure, implements this method and use structure in component, that allows you to manage state.