Go. Page 9

[Go] golang buffer channel to manage a group of goroutine work

passageway1. When a resource needs to be shared between goroutines, the channel sets up a pipeline between goroutines2. No buffer channel and buffered...
0:50 4 December 2019

Using the blocking mechanism of chan to realize the start, blocking and return controller of the cooperation process

I. use scenarios The background is to read oplog from kafka for incremental processing, but when I want to send a command to block the incremental pro...
20:43 3 December 2019

Componentized Architecture Design: gradle Componentized Configuration, Introduction and Use of APT+javapoet

Blog Home Page Reference resources: Gradle Core (5): Gradle Advanced Customization gradle componentized configuration The configuration of Android com...
16:08 3 December 2019

Record a string compression operation

There is a scenario in the project: a batch of data needs to be sent to the APP side, and in the actual application scenario, there is a certain limit...
12:14 3 December 2019

Interaction between web and APP -- WebView JavaScript Bridge

In the actual project, we often encounter the situation that the web page is embedded in the app (Hybrid), which requires the interaction between the ...
12:07 3 December 2019

Natural language processing: preprocessing of PTB data set

Reference books TensorFlow: a practical Google deep learning framework (version 2) First, assign a number to each word according to the word frequency...
23:16 2 December 2019

layui-v2.4.5 compatibility tuning

It has been written in the community of layui, but the community editor is really not good. Write it again here, just to consolidate it table.js Descr...
15:51 2 December 2019

The gin of golang network framework

golang native http library can easily implement an http server, but for complex web services, such as routing analysis, request parameter analysis, ob...
8:23 27 November 2019

How to use super easy refreshlayout

Super easy refresh layout is a powerful and easy-to-use pull-down refresh control. It is implemented by referring to the principle of swipe refresh l...
14:05 13 November 2019

Go is fun, 5.20 make a diagram with go / let the words dance

Today, I'd like to introduce an interesting codeThe picture is generated into a pattern of text. Have you seen the GIF of dancing sister composed...
11:26 10 November 2019

Understand the working principle of gorang's sync.Map according to the topological diagram

Topology diagram of sync.Map Some key points to understand the diagram var expunged = unsafe.Pointer(new(interface{})) type Map struct type readOnly s...
13:44 8 November 2019

go process control

if if conditional statements in Go do not need parentheses. A variable can be declared in conditional statements. Any variable declared here can be us...
12:28 5 November 2019

Ranking analysis of application access regions

Application access region ranking Topic content: given Nginx AccessLog (multiple files, estimated to be about 66G) for a period of time, find the five...
6:12 5 November 2019

Gorang implementation of topological sorting - DFS algorithm version

Problem Description: there is a series of numbers 1 to 5, which are rearranged and printed according to the following requirements on order. The requi...
12:29 4 November 2019

Display the current process memory usage value in Unity3D by calling CPP DLL under PC

After parsing MIDI, CSharp wants to write a memory occupation display. Generally, when writing CPP programs, it likes to check the memory and prevent ...
11:11 4 November 2019

How to integrate google/pprof into existing services?

Last week, I received the R & D requirements from the leaders and wrote a monitoring service monitor server to analyze the status of the services ...
4:55 4 November 2019

Netty implements synchronous "request-response" communication mechanism

demand Implementation of Netty-based "request-response" synchronous communication mechanism. Design thinking Netty provides a unified implem...
10:15 26 September 2019

Getting Started with Webrtc Video Communications

Getting Started with Webrtc Video Communications WebRTC, named after Web Instant Messaging, is an open source W3C recommendation that was incorporate...
23:09 25 July 2019

Exploration of Golang Source Code (3) Realization Principle of GC

Golang has introduced tricolor GC since 1.5. After several improvements, the current 1.9 version of GC pause time can be very short. The reduction of ...
15:40 17 May 2019

Viewpager Sliding Animation Notes

google has opened an interface for viewpager, PageTransformer, to implement viewpager animation. Developers can implement this interface, define the ...
17:24 31 March 2019

Gradle Series I -- Groovy, Gradle and custom Gradle plug-ins

1. overview The construction process of Android project is implemented by Gradle framework, which is implemented in Groovy language, and Gradle plug-i...
4:48 9 January 2019