• Stars
    star
    162
  • Rank 232,284 (Top 5 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 3 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A book on Go, contains fundamentals but also recipes

Go from the beginning

Welcome to Go from the beginning, a free book containing 25+ lessons that will take you from "zero to hero" in the amazing language Go.

Read online

https://softchris.github.io/golang-book/

Read offline/PDF/EPUB

https://leanpub.com/go-from-the-beginning FREE on LeanPub

Donate

Please consider donating to the people of Ukraine.

Table of content

Chapter Title Section What you will learn Lesson
01 Hello world Basics Why use Go and how to write your first program Lesson
02 Using variables Basics How to declare variables with different data types and how to initialize and assign values Lesson
03 Boolean logic with If and Else Basics How to work with boolean variables and create different execution paths with If, Else and Else If Lesson
04 Converting between strings and numbers Basics How to use the strconv library to convert between primitives and strings. Lesson
05 Loop statements Basics How to repeat statements and iterating over list structures and ways to control the loops Lesson
06 User input Basics How to read user input from the console Lesson
07 Functions Basics Reuse your code by creating functions. Learn how to deal with parameters and how to deal with returns and return types Lesson
08 Error handling Basics How manage errors in your code. This will teach both how to produce errors as well as deal with them Lesson
09 Arrays Composite data types Here we will learn about arrays, how to construct them, access items and iterate over them Lesson
10 Structs Composite data types Structs enables us to collect many fields in one grouping, learn how to create and modify structs Lesson
11 Maps Composite data types Maps make it easy to lookup items if you know the key. Maps have the notion of keys and values. Lesson
12 Interfaces Composite data types Learn how you can model your data as interfaces and how to implement them Lesson
13 Create your first project Projects Learn how to create your first project Lesson
14 Consume external packages Projects Learn how to use external packages Lesson
15 Create shared module Projects Create a module you can share with others Lesson
16 Testing Testing Learn to test your code Lesson
17 JSON Web Dev Learn to work with the JSON format Lesson
18 Build a Web App Web Dev Learn how to build a web app capable of serving many different formats Lesson
19 Logs Miscellaneous Use logging for better management of all kinds of messages in your app Lesson
20 Strings Miscellaneous Work with the string library Lesson
21 Regex Miscellaneous Work with regular epressions Lesson
22 Goroutines Miscellaneous Work with goroutines and channels Lesson
23 Database with Sqlite Miscellaneous Work with databases Lesson
24 Read and write to files IO Learn to read from and write to files Lesson
25 Files and directories IO Learn to perform operations on files and directories Lesson

How to use this content

Every chapter consist of a lesson and an exercise. You are encouraged to run the code in the exercise, modify it and understand how it works.

Contributions

Contributions are very welcome. Please raise an issue of you see something or a PR.

I welcome contributions on:

  • Suggestions on topics to cover
  • Correctness issues
  • Spelling
  • Suggestions on better formatting
  • I hope I hear from you. :)

More Repositories

1

react-book

Free book on React. Beginner to intermediate.
JavaScript
1,245
star
2

Rxjs5-Ultimate

79
star
3

mini-web

Minimalistic Web framework for Node.js, 0 dependencies
JavaScript
50
star
4

serverless-graphql-microservices

a workshop that teaches serverless, graphql and microservices
JavaScript
45
star
5

vuejs-book

JavaScript
30
star
6

spectre-demo

a C# Console app for .NET using Spectre.Console
C#
24
star
7

yaml-server

a command line tool for creating a REST API server from a YAML file
JavaScript
20
star
8

docker-compose-experiments

project showing off docker compose
Shell
16
star
9

blog-structure

the structure my blog uses
Vue
15
star
10

graphql-workshop-dotnet

C#
13
star
11

graphql-graphiql

a demo of using express + graphql and showcasing the graphiql environment
JavaScript
13
star
12

joi-example

example showing how to use Joi with Node + Express
JavaScript
12
star
13

aurelia

a master detail example of using aurelia
JavaScript
11
star
14

mock-sharp

Mock API for minimal API, ASP .NET, written in C#
C#
11
star
15

vanilla-spa

SPA impl in JS
JavaScript
8
star
16

london-javascript-blogs

blogs and articles from london javascript
8
star
17

node-snippets

repo that contains the node snippets you can install for vscode
8
star
18

dinosaur-garden

Babylon.js
TypeScript
7
star
19

softchris.github.io

my blog
HTML
7
star
20

recursion

a repo showing different problems solved with recursion
JavaScript
7
star
21

angular4-webpack

A very minimal Angular 4.x with webpack set up to demonstrate the bare minimum that needs to exist to work with Angular 4.x
JavaScript
7
star
22

formik-example

repo with demonstrations on how formik works
JavaScript
6
star
23

angular_course_sarajevo

A full day of lectures and code samples
HTML
6
star
24

graphql-ef-demo

demo covering EF .NET and GraphQL
C#
5
star
25

hex-game-editor

editor for repo hex-game
TypeScript
5
star
26

angular-testing

TypeScript
5
star
27

cognitive-services

a demonstration of most cognitive service in Azure
JavaScript
4
star
28

dotnet-serverless

a repo on serverless using c#
C#
4
star
29

react-starter-project

Starter project for React using Webpack and Babel
JavaScript
4
star
30

mayan-mystica

repo for Azure Mansion like projects, our own brew
JavaScript
3
star
31

ngrx-demos

Demos different aspects of ngrx/store
TypeScript
3
star
32

Angular2-demo

the idea is to showcase features in Angular 2
TypeScript
3
star
33

angulartemplate

a starting template for angular, everything in place services repo etc..
JavaScript
3
star
34

automapper-demo

Contains a .NET Core demo for AutoMapper
C#
3
star
35

copilot-workshop

workshop with copilot
JavaScript
2
star
36

rxjs-labs

rxjs
TypeScript
2
star
37

Architecting-Angular-Applications

ngrx
TypeScript
2
star
38

cypress-demo

JavaScript
2
star
39

mlops-exercise

exericse for mlops
Python
2
star
40

blazor-sample

blazor app
HTML
2
star
41

node-express-supertest

Node Express + API testing with supertest
JavaScript
2
star
42

mlops-demo-ga

mlops demo
Python
2
star
43

hex-game

Hexgrid game
TypeScript
2
star
44

azure-book

book on everything azure
2
star
45

frontend_gbg

CSS
2
star
46

minimal-api-demo

minimal API demo C#
C#
1
star
47

LearningAngular

repository for the book Learning Angular - second edition
TypeScript
1
star
48

gatsby-demo

CSS
1
star
49

math

go library for math ops
Go
1
star
50

blazor-resume

shows to to build a resume in Blazor
C#
1
star
51

cpp-snippets

Snippets for C++
1
star
52

chris-github-copilot-test

testing copilot with github extension
Python
1
star
53

devops-demo

JavaScript
1
star
54

typescript-playground

a playground that compiles typescript to es6 and that runs jest tests
JavaScript
1
star
55

angular_meetup

collection of code and ppt for angular gothenburg meetup group
JavaScript
1
star
56

react-context-demo

A repo demonstrating the Context API in React
JavaScript
1
star
57

swa-testing-recent

testing
HTML
1
star
58

ngrx-video

video course on ngrx, this is the code that goes with it
TypeScript
1
star
59

gatsby-cli

helps to scaffold things like component, page components and different plugins
JavaScript
1
star
60

angular_2_day_course

angular javascript
1
star