Interoperability between Go and C language
1. Interoperability between go and C language
Go has a strong c background. In addition to the inheritance of syntax, its designers and design goals are inextricably linked with C language. In terms of interoperability between go and C language, go provides powerful support. Especially when using C in go, you can even write c code directly ...
Posted by youngloopy on Thu, 20 Jan 2022 18:09:31 +0100
Data conversion and use commonly used in CGO practical projects
preface
It is necessary to deploy the relevant environment and have basic knowledge points. This is not a popular science article. It is mainly aimed at the type conversion and use used in the actual project, and the function call parameter passing and receiving of the dynamic library1. GO environment, start and support CGO2. Prior installatio ...
Posted by tekkenlord on Thu, 20 Jan 2022 17:36:41 +0100
Take you ten days to easily complete the Go micro service series
preface
We will show you a go zero micro service example in detail through a series of articles. The whole series is divided into ten articles, and the directory structure is as follows:
Environment constructionService splittingUser servicesProducts and services (this article)Order servicePayment servicesRPC service Auth authenticationService ...
Posted by saranya on Thu, 20 Jan 2022 08:44:48 +0100
[concurrent programming] basic usage and implementation of Pool
Blogger introduction:
- I am the official account of WeChat. The Milky way ]I look forward to your attention. Come on in the future~
preface
Go is a programming language for automatic garbage collection. It uses three-color concurrent marking algorithm to mark objects and recycle them. Therefore, we generally use it whenever we want, wi ...
Posted by XaeroDegreaz on Thu, 20 Jan 2022 07:58:45 +0100
Kick you into the Go language gate! Beginners must read, 10000 words long text, it is recommended to collect!
Hello, I'm clean!
Part I: kick you into the door of Go language!
I. the foundation is not firm and the earth is shaking
1. First example: Hello World
package main
import "fmt"
func main(){
fmt.Println("Hello World")
}
In the first line, package main represents which package the current file belongs to. Package is the keyword of ...
Posted by RazorICE on Thu, 20 Jan 2022 05:36:02 +0100
Go language quick start
Go language quick start learning
Go is an open source programming language that makes it easy to construct simple, reliable and efficient software. And in today's Internet companies, go is more and more widely used.
The following are my personal notes according to my own introduction plan, and I will refer to rookie programming and Go languag ...
Posted by The Merg on Thu, 20 Jan 2022 02:32:42 +0100
balancer for grpc source code reading
BalancergRPC balancerbackgroundNext, in the previous article, "Resolver of gRPC plug-in programming", gRPC parses the target into Resolver After the target is set, it passes the Resolver Builder. Build method callresolver.ClientConn.UpdateState(State) error method. What does this method do? Let's move on to the source code in this art ...
Posted by kamsmartx on Wed, 19 Jan 2022 19:59:54 +0100
GoFrame framework: quickly create static file download Web service
introduce
This article describes how to rk-boot Quickly build a static file download Web service.
What is the static file download Web UI?
Quickly build Web services that can download files through configuration files.
Please visit the following address for a complete tutorial:
https://rkdocs.netlify.app/cn
install
go get g ...
Posted by Dagwing on Wed, 19 Jan 2022 18:28:08 +0100
go_day02 arrays and slices
The array length is part of the array type
Definition of array
//statement
var a1 [3]int
fmt.Print(a1)
//Assignment, note to add length and type
a1 = [3]int{1, 2, 3}
//Method 1 in function
a2 := [3]int{1, 2, 3}
//Method 2 in function
a3 := [...]int{1, 3, 4}
//Method 3 in function, using index
a4 := [5]int{0: 1, 4: 5}
fmt.Print(a1, a2, a3, a4)
/ ...
Posted by pmt2k on Wed, 19 Jan 2022 13:48:38 +0100
Take you ten days to easily complete the Go micro service series
At the beginning of this article, we will publish a series of articles to show you a go zero micro service example in detail. The whole series is divided into ten articles, and the directory structure is as follows:
Environment construction (this paper)Service splittingUser servicesProduct serviceOrder servicePayment servicesRPC service Auth a ...
Posted by Pedestrian on Tue, 18 Jan 2022 09:26:59 +0100