Documentation ¶
Overview ¶
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Goes over if, else, switch conditions, loops and defer.
Directories ¶
Path | Synopsis |
---|---|
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Creating a basic function
|
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Creating a basic function |
As of Google go 1.1.2, `println()` and `print()` are hidden functions included from the runtime package.
|
As of Google go 1.1.2, `println()` and `print()` are hidden functions included from the runtime package. |
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows different ways of importing a package.
|
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows different ways of importing a package. |
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Showing how to use `panic()` and `recover()`
|
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Showing how to use `panic()` and `recover()` |
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows passing a variable by value and reference
|
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows passing a variable by value and reference |
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows how to define a function type
|
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows how to define a function type |
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows how to return multiple values from a function
|
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows how to return multiple values from a function |
Click to show internal directories.
Click to hide internal directories.