Documentation ¶
Overview ¶
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows different ways of importing a package. Note: For the package `only_call_init`, we reference the path from the base directory of `$GOPATH/src`. The reason being Golang discourage the use of relative paths when import packages. BAD: "./only_call_init" GOOD: "apps/ch.2.3/import_packages/only_call_init"
Click to show internal directories.
Click to hide internal directories.