import_packages

command
v0.0.0-...-c294b08 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

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"

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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