Amisgo is a low code frontend framework for gophers.
The name stands for amis go
, coincidentally means friend
in Zulu.
Amisgo is inspired by and based on baidu Amis.
Read the wiki(Chinese) for more background and details.
package main
import (
"github.com/zrcoder/amisgo"
"github.com/zrcoder/amisgo/comp"
)
func main() {
index := comp.Page().Title("Amisgo").Body(
comp.Form().Mode("horizontal").Body(
comp.InputText().Label("Name").Name("name"),
comp.InputEmail().Label("Email").Name("email"),
),
)
amisgo.Serve("/", index)
panic(amisgo.ListenAndServe(":80"))
}
and then visit http://localhost to view the served site.
See our examples repo, or a live demo: Dev-Toys
- both ListenAndServe, GenerateStaticWebsite api
- Generate codes in the comp directory, based on schema.json in Amis' last release(or Amis' docs)
- Tests and examples(40%)
- Go+ classfile improvement