• Talking about Goroutine Scheduling Mechanism


    1. What is Goroutine In the go language, each concurrent execution unit is called a goroutine. The opposite of concurrency is serial, that is, the code is executed line by line in order. Goroutine provides the go language with the capability of concurrent programming. When a program starts, its main function runs in a separate […]

  • Some mistakes that are often made in golang


    0.1, index https://waterflow.link/articles/1664080524986 1. Unknown enumeration value We now define a Status of type unit32, which can be used as an enumeration type, and we define 3 states type Status uint32 const ( StatusOpen Status = iota StatusClosed StatusUnknown ) Among them, we used iota, and related usages can be googled by ourselves. The final […]