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

Setting up the template set on the server side

Let's examine the variable declarations at the beginning of the igweb.go source file found in the igweb folder:

var WebAppRoot stringvar WebAppMode stringvar WebServerPort stringvar DBConnectionString stringvar StaticAssetsPath string

The variables declared here are critical for the proper operation of the web server instance. The WebAppRoot variable is responsible for specifying where the igweb project folder resides. The WebServerPort variable is responsible for specifying on what port the web server instance should run on. The DBConnectionString variable is used to specify the connection string to the database. The StaticAssetsPath variable is used to specify the directory that contains all ...

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