Skip to content
Golang WebAssembly Framework
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
.gitignore
LICENSE
README.md Made README example use uppercase App.go Mar 11, 2019
coco.go

README.md

🥥 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
You can’t perform that action at this time.