Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.13 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.13 KB

Amisgo

Amisgo is a low code frontend framework for gophers.
The name stands for amis go, coincidentally means friend in Zulu.

Inspired by

Amisgo is inspired by and based on baidu Amis.
Read the wiki(Chinese) for more background and details.

Hello world

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.

Examples

See our examples repo, or a live demo: Dev-Toys

TODO

  • 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