January 2018
Intermediate to advanced
340 pages
8h 6m
English
Within the ~/src directory, any directory you create is a package. The name of your directory becomes the name of the package or application. We need to first make sure that the src directory exists. Tilde (~) is a shortcut for your home directory similar to the $HOME variable. Refer to the following code block:
mkdir ~/src
Let's create a new package named hello for our first application:
cd ~/srcmkdir hello
A package is simply a directory. You can have one or more source files inside a package. Any subdirectories are treated as separate packages. A package can be an application with a main() function (package main), or it can be a library that can only be imported to other packages. This package doesn't have any ...
Read now
Unlock full access