Category:golang

  • How to understand Context in Go?

    Time:2024-2-23

    Best tutorial I’ve seen so far besides “go language programming”: https://www.practical-go-lessons.com Original text:https://www.practical-go-lessons.com/chap-37-context What will you learn in this chapter? 1. What is context? 2. What is a chained table? 3. How do I use the Context Pack? Technical concepts covered Context derivation Linked list Context key-value pair Cancellation Timeout Deadline present (sb for a […]

  • Go commands

    Time:2024-1-16

    Article Catalog preamble Common commands go bug typical example Parameter description go doc typical example Parameter description go env typical example go fix typical example go fmt typical example go generate typical example summarize put at the end preamble Continuing on from the previous post, we’ll cover common commands in the Go language. Common commands […]

  • Basic Syntax of Go

    Time:2023-11-23

    summarize In the previous section, we introduced our first Go program, including: installing the Go environment, writing our first Go program, compiling and running the program, and so on. In this section, we will introduce the basic syntax of Go. Go is a concise and elegant language with some special syntax rules of its own. […]