factor

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

README

Factor

Factor is a tool for building SPA web applications in Go using Web Assembly (WASM).

Factor is heavily inspired by Svelte and Sapper, but doesn't attempt to be a straight port, but rather take those ideas and present them in a way natural for a Go developer.

Application Structure

├ app
│ ├ App.html # Main/initial view
│ └ template.html # application template
├ assets
│ ├ # your files here
├ components 
│ ├ # your files here
├ routes
│ ├ # your routes here - these are pages.
│ ├ _error.html
│ └ index.html

Requirements

WASM support is only available in Go 1.11, which is not yet officially released, so you'll need to download a pre-release:

$ go get golang.org/x/build/version/go1.11beta1

Then, use go1.11beta1 when building.

Development

$ cd factor
$ go1.11beta1 install

Make sure you have $GOPATH/bin in your executable path (i.e. $PATH) and your factor CLI is ready to go, hot off the presses.

Notes

  • Factor enforces very strict HTML rules. <br> will break. Close all self-closing tags properly: <br />. Failing to do this will result in an error like element input closed by form in your generated Go files.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
examples
client
build +js,wasm
build +js,wasm
components
This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty
This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty
routes
This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty
This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty This file was created with https://github.com/factorapp/factor using https://jsgo.io/dave/html2vecty
server
build !js,wasm
build !js,wasm

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL