O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running kick

To learn how to use kick, you can issue the help command line flag like this:

$ kick --help

The --appPath flag specifies the path to the Go application project. The --gopherjsAppPath flag specifies the path to your GopherJS project. The --mainSourceFile flag specifies the name of the Go source file that contains the main function implementation in the Go application project directory. If you're still running IGWEB using the go run command in the Terminal window, it's time to exit the program and run it using kick instead.

To run the IGWEB demo with kick, we issue the following command:

$ kick --appPath=$IGWEB_APP_ROOT --gopherjsAppPath=$IGWEB_APP_ROOT/client --mainSourceFile=igweb.go

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required