Skip to content

zrcoder/amisgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A low code frontend framework for gophers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages