Table of Contents
Preface
Part 1: Scripts
1
Variables and Operators
Technical requirements
Introduction to Go
What does Go look like?
Exercise 1.01 – using variables, packages, and functions to print stars
Activity 1.01 – defining and printing
Declaring variables
Declaring a variable using var
Exercise 1.02 – declaring a variable using var
Declaring multiple variables at once with var
Exercise 1.03 – declaring multiple variables at once with var
Skipping the type or value when declaring variables
Exercise 1.04 – skipping the type or value when declaring variables
Type inference gone wrong
Short variable declaration
Exercise 1.05 – implementing a short variable declaration
Declaring multiple variables with a short variable declaration
Exercise ...
Get Go Programming - From Beginner to Professional - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.