1C. Go - Packages

Packages need to be imported before use.

Use:

package main

import "fmt"

func main() {
    fmt.Println("HELLO")
}


Packages are used in a program using the format PACKAGE.IDENTIFIER, fmt.Println(), fmt is PACKAGE, Println() is IDENTIFIER.

Comments

Popular posts from this blog

2. FreeCodeCamp - Dynamic Programming - Learn to Solve Algorithmic Problems & Coding Challenges

20. Data Analytics - Analyze Data to Answer Questions - Week 1

3. Algorithms - Selection Sort