GoIntroduction & Core Concepts

51 items

1

Unused Import Rejected by Go

Code Quiz
2

Basic Data Types

Quiz
3

Constants in Go

Quiz
4

What Go Is

Quiz
5

Code Formatting With gofmt

Quiz
6

Type Inference

Quiz
7

Static Typing

Quiz
8

Semicolons in Go

Quiz
9

Go's Origins

Quiz
10

Running Go Programs

Quiz
11

Compiled vs Interpreted

Quiz
12

Zero Values

Quiz
13

Declaring Variables

Quiz
14

Basic Program Structure

Quiz
15

Exported Identifiers

Quiz
16

Program Entry Point

Quiz
17

Comments in Go

Quiz
18

Printing With fmt

Quiz
19

Concatenating a String and a Number

Code Quiz
20

Assuming the Wrong Zero Value

Code Quiz
21

Short Declaration Outside a Function

Code Quiz
22

Missing Numeric Conversion

Code Quiz
23

Integer Division Surprise

Code Quiz
24

Assigning to a Constant

Code Quiz
25

Declaring a Variable with var

Code Quiz
26

Type Inference Gone Wrong

Code Quiz
27

Importing the Right Package

Code Quiz
28

The Entry Point Function

Code Quiz
29

Broken Comment Syntax

Code Quiz
30

Package Declaration for Runnable Program

Code Quiz
31

Calling an Unexported Function

Code Quiz
32

Boolean Value Assigned as String

Code Quiz
33

Printf Format Verb Mismatch

Code Quiz
34

The func Keyword

Flashcard
35

Building Executables with go build

Flashcard
36

Comments in Go

Flashcard
37

Compiled vs Interpreted

Flashcard
38

gofmt and Standard Formatting

Flashcard
39

Case-Based Visibility

Flashcard
40

Structure of a Basic Go Program

Flashcard
41

Package Declaration and package main

Flashcard
42

Import Statements and Standard Library

Flashcard
43

Go Modules and go.mod

Flashcard
44

Go File Naming and .go Extension

Flashcard
45

What Go Is and Its Origins

Flashcard
46

Printing Output with fmt

Flashcard
47

Garbage Collection in Go

Flashcard
48

Semicolon Insertion Rules

Flashcard
49

Statically Typed Language

Flashcard
50

Running Code with go run

Flashcard
51

Key Design Goals of Go

Flashcard
Code QuizBeginner

Calling an Unexported Function

Spot the capitalization rule that blocks cross-package access.

Codego
package main

import "strings"

func main() {
    result := strings.toUpper("hi")
    _ = result
}

This program fails to compile. What is the bug?