[daily] Go language Bible - package and file - Import package exercises

1. Each package has a globally unique import path 2. According to the Convention, the name of a package is the same as the last field of the package import path Exercise 2.2: write a general unit conversion program. Read the parameters from the command line in the way similar to the cf program. If it is the default, read the parameters from the ...

Posted on Fri, 03 Apr 2020 07:55:20 -0700 by seanmayhew

golang Quick Start [9.1] - Deep into string storage, compilation, and operation

Previous Introduction to Goang Quick Start [1]-go Language golang Quick Start [2.1]-go Language Development Environment Configuration-windows golang Quick Start [2.2]-go Language Development Environment Configuration-macOS golang Quick Start [2.3]-go Language Development Environment Configuration-linux golang Quick Start [3]-go helloworld How ...

Posted on Fri, 03 Apr 2020 01:11:26 -0700 by scarface222

The Bible of Go language

Exercise 8.4: modify the revb2 server to use sync.WaitGroup in each connection to count the active echo goroutine. When the count is reduced to zero, turn off writing of the TCP connection, as in exercise 8.3. Verify that your modified version of netcat 3 client will always wait for all concurrent "shouts" to complete, even when the s ...

Posted on Thu, 26 Mar 2020 08:58:27 -0700 by drewklue

Development practice of Kubernetes operator model

0. Preface Recently, we used Kubernetes's Operator Pattern to implement the operation and maintenance system when developing a microservice platform that meets our own business needs. In this paper, we sorted out the main knowledge points and technical details accumulated in the implementation process. After reading this article, readers will ...

Posted on Tue, 17 Mar 2020 02:36:39 -0700 by stilgar

Basic Data Types in the Go Language

There are several basic data types commonly used in the Go language: integer float Boolean type complex Character string integer Signed int8 int16 int32 int64 Unsigned uint8 uint16 uint32 uint64 Special Integer Uint, 32-bit operating system is uint32, 64-bit operating system is uint64 Int, 32-bit operating system is int32, 64-bit ope ...

Posted on Sun, 15 Mar 2020 09:15:42 -0700 by purtip3154

RPC principle and GRPC details

1, RPC principle 1. RPC framework origin As the volume of single application becomes larger and larger, and the code is not easy to maintain and manage, a microservice architecture is generated, which is divided into independent services according to public or functional modules, and then independent services can be called each other. How to ca ...

Posted on Tue, 10 Mar 2020 20:44:49 -0700 by reckdan

go to implement java virtual machine 01

I read a book a while ago, which said that it was very interesting to implement java virtual machine with go language, so I spent a period of time learning go language. Although I didn't have a deep understanding of the bottom layer of go, it's OK to write code, just like a reading note! Here is the link. In addition, there is a "go progra ...

Posted on Wed, 26 Feb 2020 04:49:42 -0800 by lingo5

Getting started with golang [5.2] - how the go language works - memory overview

Preceding text golang quick start [2.1]-go language development environment configuration windows golang quick start [2.2]-go language development environment configuration - macOS golang quick start [2.3]-go language development environment configuration linux Get started with golang [3]-go language helloworld How to compile golang into mach ...

Posted on Wed, 19 Feb 2020 02:02:32 -0800 by keiran420

How to use the flex direction property of CSS?

The flex direction attribute is a child of the Flexible Box Layout module. It establishes the spindle, which defines the direction in which the flex item is placed in the flex container. Note: the flex direction attribute does not work if the element is not an element of the elastic box object.   ...

Posted on Mon, 17 Feb 2020 03:01:55 -0800 by Vasudhevan

How the golang Quick Start [5.1]-go language works-linker

Previous golang Quick Start [2.1]-go Language Development Environment Configuration-windows golang Quick Start [2.2]-go Language Development Environment Configuration-macOS golang Quick Start [2.3]-go Language Development Environment Configuration-linux golang Quick Start [3]-go helloworld How the golang Quick Start [4]-go language is compile ...

Posted on Sun, 16 Feb 2020 15:26:32 -0800 by tlchung