Skip to content

mrmiguu/coco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🥥 Coco

Golang WebAssembly Framework

App.go

type App struct {
    Counter int
}

func (a App) OnTestClick() {
    a.Counter++
    coco.Set(a)
}

App.html

<div class="Test">
  {{.Counter}}
</div>

App.css

.Test {
  width: 160px;
}

Installation

go get github.com/mrmiguu/coco

Running the example

You should use go-wasm-cli to run this example.

cd $GOPATH/src/github.com/mrmiguu/coco/example
go-wasm start

About

Golang WebAssembly Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published