Take you ten days to easily handle 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 servicesProduct serviceOrder servicePayment services (this article)RPC service Auth authenticationService monit ...

Posted by tabatsoy on Tue, 25 Jan 2022 06:55:25 +0100

Take you ten days to easily handle 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 construction Service splitting User services (this article) Product service Order service Payment services RPC service Auth authentication Service ...

Posted by eevan79 on Tue, 25 Jan 2022 06:54:29 +0100

Golang - goroutine and channel

Original address: https://juejin.cn/post/6844903778617917453 goroutine goroutine is the part of application concurrent processing in Go. It can perform efficient concurrent operations. Coroutines are lightweight and cheaper than threads. It can be created in memory using 4K stack memory.It can split the stack and dynamically increase or redu ...

Posted by peanutbutter on Tue, 25 Jan 2022 02:08:33 +0100

Learning of math, fmt, io basic package

1, math Provides basic constants and mathematical functions 1. Absolute value of number func Abs(x float64 ) float64 exceptional case Abs(±Inf) = +Inf Abs(NaN) = NaN 2.func Cbrt(x float64 ) float64 func Cbrt(x float64 ) float64 3.Floor returns the maximum integer value less than or equal to x. func Floor(x float64 ) float64 4.Ceil r ...

Posted by Disgrntld on Mon, 24 Jan 2022 23:07:56 +0100

[redis series] redis learning IV, set set, hash, zset ordered set preliminary cognition

Set set The data in the set cannot be re read SADD key member [member ...] Adds an element to the set collection SMEMBERS key View all elements in the collection SISMEMBER key member Check whether a data is in the collection SCARD key View the number of set data, that is, the length of the set SREM key member [member ...] Removes the spe ...

Posted by bluegreen1 on Mon, 24 Jan 2022 22:33:26 +0100

Go language function

1, Functions Functions: a block of codeAll process control codes and business codes can only be written inside functionsWhy use functions: Put forward a function as a function, which is convenient for later maintenance and has a clear structure Syntax of function declaration The function will not be executed after it is declared. It ...

Posted by saltwater on Mon, 24 Jan 2022 08:57:36 +0100

GoFrame framework (RK boot): enable TLS/SSL

introduceThrough a complete example, in gogf/gf Open TLS/SSL in the framework. I'm what we often call https.We will use rk-boot To start gogf/gf Microservices.Please visit the following address for a complete tutorial:https://rkdocs.netlify.app/cnGenerate self signed certificateUsers can purchase certificates from major cloud manufacturers or u ...

Posted by reddymade on Mon, 24 Jan 2022 01:06:25 +0100

In depth understanding of data structure -- binary tree (basic chapter)

Recently, I started to learn go. The company also arranged some corresponding exercises, including those related to binary tree. I happened to pick up some knowledge points in this regard In the computer data structure, we often come into contact with the typical nonlinear data structure of tree. The following picture shows a standard tree stru ...

Posted by kid85 on Sun, 23 Jan 2022 19:30:36 +0100

3 minutes to get you started with Go language (nanny level tutorial)

Go language introduction detailed knowledge, mainly to share with you go language composition, go language function format, C language to go language comparison. Go language program composition Like C language program, Go language program is also composed of many functions Like C language programs, the system * automatically calls a functio ...

Posted by watsmyname on Sun, 23 Jan 2022 16:58:59 +0100

Golang wails2 cross end desktop solution

wails2 Golanggithub: https://github.com/wailsapp/w...file: https://wails.io/zh-Hans/docs...Environmental requirementsGo 1.16npmIt must be one of Windows, MacOS and Linux operating systemsgccinstall# Go 1.17 lower installation go install github.com/wailsapp/wails/cmd/wails@latest # Go 1.16 $ go get -u github.com/wailsapp/wails/cmd/wailsEnter t ...

Posted by La Parka on Sun, 23 Jan 2022 15:08:27 +0100