The basic grammar of Golang

Hello, everyone. Today I will share with you the basic grammar of Go language. Please give me more advice, thank you.The basic grammar content of Go language is divided into three chapters, and this paper is the second chapterThe basic grammar of Golang (1)The basic grammar of Golang (2)The basic grammar of Golang (3)Contents of this chaptercha ...

Added by me1000 on Thu, 10 Mar 2022 15:42:02 +0200

Service discovery consumer example

I Introduction to service discovery In the process of microservice development and deployment, each service runs in an independent process. Services communicate with each other through lightweight communication mechanisms (such as RESTful API). How to manage these services? When a user sends a request, which service should be requested to meet ...

Added by dzoddi on Thu, 10 Mar 2022 05:48:18 +0200

Golang interface {}

prefaceThis article will mainly introduce the interface {} in golang and unlock its mysterious veil. Before introducing it, we need to understand the type system of golang, and then introduce the use of interface, the underlying principle of interface and the principle of interface in reflectionType systemThe built-in types of Golang include in ...

Added by enemeth on Tue, 08 Mar 2022 15:11:37 +0200

Golang quick start

Golang basic learning notes, quickly understand the basic grammar of golang. Learning materials Super complete golang interview questions collection + golang Learning Guide + golang knowledge map + entry growth route ; One covers the core knowledge that most golang programmers need to masterHan Shunping's golang video tutorial , the video is ...

Added by laknal on Tue, 08 Mar 2022 12:56:01 +0200

Microservices have everything from code to k8s deployment (XI. Log collection)

We will use a series to explain the complete practice of microservices from requirements to online, from code to k8s deployment, from logging to monitoring. The whole project uses the micro services developed by go zero, which basically includes go zero and some middleware developed by relevant go zero authors. The technology stack used is basi ...

Added by devarishi on Tue, 08 Mar 2022 03:48:50 +0200

Optimization of function call stack in go

Function call stack can be regarded as the necessary knowledge for bald programmers. This article does not cover it completely, but only explains why I encounter call stack. I only think about it according to my case. I will put the specific articles I have read at the end Why do you think of the problem of function call stack? Look at the ...

Added by dvt85 on Mon, 07 Mar 2022 22:44:42 +0200

Go mod usage guide

From: https://studygolang.com/articles/31112?fr=sidebar 1. Enable go mod go env -w GO111MODULE=on #Turn on MODULE go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct #defaults to https://proxy.golang.org,direct GO111MODULE can be set to: off, on, auto (default), as you can see from the GO111MODULE variable name, it is Go1. Depend ...

Added by amberb617 on Mon, 07 Mar 2022 20:07:24 +0200

MetalLB is used as LoadBalancer- BGP in Kubernetes cluster

In the previous article Using MetalLB as LoadBalancer in Kubernetes cluster (Part 1) In, we use MetalLB's Layer2 pattern as the implementation of LoadBalancer to expose the services in Kubernetes cluster outside the cluster. Remember the IP address pool we assigned to MetalLB in Configmap? apiVersion: v1 kind: ConfigMap metadata: namespac ...

Added by Distant_storm on Mon, 07 Mar 2022 05:51:24 +0200

Microservices have everything from code to k8s deployment (X. error handling)

We will use a series to explain the complete practice of microservices from requirements to online, from code to k8s deployment, from logging to monitoring. The whole project uses the micro services developed by go zero, which basically includes go zero and some middleware developed by relevant go zero authors. The technology stack used is basi ...

Added by zulubanshee on Mon, 07 Mar 2022 03:40:56 +0200

fmt in Golang standard library

fmt in Golang standard library fmt package implements formatted I/O similar to C language printf and scanf. It is mainly divided into two parts: output content and obtain input content. 1. Outward output The standard library fmt provides the following output correlation functions. Print Print series functions will output the content to the ...

Added by keeve on Sun, 06 Mar 2022 17:15:37 +0200