On java inner class

prefaceWhen it comes to java internal classes, you must first think of the commonly used "anonymous internal classes", but in fact, this is only one way to use internal classes. The usage of internal classes actually includes: member internal classes, method local classes and anonymous internal classes. I'll introduce them one by one ...

Posted by bossman on Fri, 29 Apr 2022 15:54:55 +0300

Go enhanced operation Mysql(Sqlx)

Go enhanced operation Mysql(Sqlx) preface Hey, Hello everyone, I'm Manon, Saturday!, Last time we learned how to use Go to operate Mysql and realized simple addition, deletion, modification and query. But relatively speaking, it's a little complicated. Maybe those big guys also think it's cumbersome. It also developed an enhanced version of ...

Posted by alex clone on Thu, 28 Apr 2022 07:40:10 +0300

channel practical application, this is enough!

One thing to say, this article is a bit of a headline party, but it is definitely dry goods. There are already a lot of articles about channel s, why should I even write them? Any knowledge point, as long as you want, you can cut in from different angles! Then write something related to the channel application. Use the channel feature in differ ...

Posted by Afser on Wed, 27 Apr 2022 16:25:00 +0300

Jenkins build and rollback tasks

Take the golang build project as an example. New task Enter a task name Choice: build a free style software project Optional: you can also copy the created task Confirm submission to configure Edit the task you just created again describe To describe your project, you can write the following information. entr ...

Posted by shahryar on Mon, 25 Apr 2022 18:29:54 +0300

Loop structure control and use of package functions

preface The Golang notes summarized here are only suitable for people with a little basic programming, such as Java loop A loop is a piece of code that appears only once in a program, but may run multiple times in a row. The code in the loop will run a specific number of times, or end the loop when a specific condition is establishe ...

Posted by helloise on Mon, 25 Apr 2022 13:15:58 +0300

The cache is well designed, and the service will not fail

This article is modified from the live broadcast content of Go zero in the fourth issue of "Go open source theory". The video content is long and divided into two parts. The content of this article has been deleted and reconstructed. Hello, I'm glad to come to "GO open source theory" to share with you some stories, design i ...

Posted by vikramjeet.singla on Mon, 25 Apr 2022 08:00:11 +0300

The method and principle of go micro using Consul for service discovery

Go micro V4 uses mdns for service discovery by default. However, it also supports the use of other service discovery middleware, because Consul has been used for service discovery for many years. In order to facilitate the integration with other services, Consul was selected. This article will introduce the method of go micro using consult for ...

Posted by woozy on Mon, 25 Apr 2022 05:03:56 +0300

Data structure binary tree entry Go language implementation

Data structure binary tree entry Go language implementation We have been talking about one-to-one linear structure before, but in reality, there are still many one to many situations to deal with, so we need to study this one to many data structure - "tree" and consider its various characteristics to solve the relevant problems ...

Posted by tkmk on Sun, 24 Apr 2022 21:36:35 +0300

Go concurrency and channel

1.Go concurrency Go language supports concurrency. We only need to open goroutine through the go keyword. Goroutine is a lightweight thread, and the scheduling of goroutine is managed by the Golang runtime. goroutine syntax format: go Function name( parameter list ) Go allows you to use the go statement to start a new runtime threa ...

Posted by cfemocha on Sat, 23 Apr 2022 10:01:14 +0300

Solve the communication problem between go micro and other gRPC frameworks

In the previous article, we introduced the ways to develop gRPC applications using gRPC official plug-in and go micro plug-in respectively, which can work normally. However, when the two are mixed, mutual access becomes a problem. For example, when the gRPC client generated by the go micro plug-in accesses the server created based on the gRPC ...

Posted by stndrdsnz on Fri, 22 Apr 2022 02:43:48 +0300