Go1.18 new feature: deprecate strings Title Method, change a new pit!
Hello, I'm fried fish.I've been watching go1 18. When releasing notes, I found that the Title Method of strings and bytes standard library was Deprecated. Why?Today's article will be read by fried fish and everyone.introduceHere, take the strings standard library as an example, strings The title method maps Unicode letters at the beginning of a ...
Added by Warmach on Wed, 16 Feb 2022 06:42:58 +0200
Microservices have everything from code to k8s deployment series (VIII. Various queues)
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 bas ...
Added by new7media on Wed, 16 Feb 2022 05:45:06 +0200
ch2 setting API -- creating distributed applications using go gin
Catalogue of series articles
Chapter I gin preliminary understanding Chapter 2 setting API
Note:
The series of articles are learning notes corresponding to the original English books mentioned aboveRelated to their own practice code, including comments, on my gitee Welcome, starAll contents are allowed to be reproduced. If the cop ...
Added by dandare on Tue, 15 Feb 2022 07:09:28 +0200
Take you ten days to easily handle 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 article)Service splittingUser servicesProduct serviceOrder servicePayment servicesRPC service Auth a ...
Added by robsgaming on Tue, 15 Feb 2022 05:26:15 +0200
golang treasure house recommendation
1. Write at the beginning
When I was coding last year, I found two easy-to-use libraries and recorded them here for reuse later. At the same time, it is also convenient for those who have needs in this regard.
Library of golang map to structure - https://github.com/mitchellh/mapstructure golang json verification Library - https://github ...
Added by mizkit73 on Mon, 14 Feb 2022 12:29:06 +0200
gorilla/mux framework (RK boot): add tracing Middleware
introduceThrough a complete example, based on gorilla/mux Add tracing middleware to microservices.What is tracing middleware?The Tracing middleware will record the Tracing data for each API request, which can be viewed by users using tools like Jaeger.We will use rk-boot To start gorilla/mux Microservices.rk-boot Is a framework that can start a ...
Added by graham on Mon, 14 Feb 2022 10:42:41 +0200
GO Language Learning Road 21
2022/02/12
/*
//Basic introduction to processes and threads
1. A process is an execution of a program in an operating system.
Is the basic unit for system resource allocation and scheduling
2. Threads are an execution instance of a process and the smallest unit of program execution.
* It is a smaller base unit that can run independently ...
Added by php_coder_dvo on Sat, 12 Feb 2022 19:38:12 +0200
The code solves the problems of cache penetration and cache avalanche
preface
When we use redis to combine golang, we see a lot of problems about cache penetration and cache avalanche on the Internet, but there are few really combined codes. In fact, we can refer to other people's codes to write our own templatesHowever, for a complete set of systems like this, it's best to use ready-made ones (laughter)
What a ...
Added by benphelps on Fri, 11 Feb 2022 16:37:06 +0200
Interviewer: is it thread safe for Context to carry data?
Original link: Interviewer: is it thread safe for Context to carry data?prefaceHello, everyone. I'm asong. Recently, I saw an interesting eight part essay in a group. The question is: is the value carried in context thread safe? In fact, this question is to investigate the interviewer's understanding of the implementation principle of context. ...
Added by rsasalm on Fri, 11 Feb 2022 16:15:58 +0200
Microservices have everything from code to k8s deployment (III. authentication)
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 ambo on Fri, 11 Feb 2022 16:07:27 +0200