Go language Bible - Chapter 6 methods - 6.5 example: bit array
Chapter 6 methods
Since the 1990s, object-oriented programming (OOP) has become a programming paradigm that dominates the engineering and educational circles. Therefore, almost all large-scale applied languages include OOP support, and Go language is no exception
In fact, OOP is not clearly defined, but the general meaning is that an object i ...
Added by ATLien on Fri, 12 Nov 2021 13:15:25 +0200
http protocol and gin
socket programming and tcp
Since tcp/ip protocols are encapsulated on the bottom layer of the operating system, in order to avoid the application layer directly calling the methods of the operating system, the operating system provides a socket interface, which is called by the application layer. The socket interface is divided into tcpSocket ...
Added by Shuriken1 on Thu, 11 Nov 2021 01:49:28 +0200
Golang operates Excel module Excel learning summary 2 - set cell data
Golang operation Excel module Excel – sets the value of the cell
Create a new excel file excelize.NewFile() Gets the index of the currently active sheet page func (f *File) GetActiveSheetIndex() (index int) Specify cell settings func (f *File) SetCellValue(sheet, axis string, value interface{}) error Specify the cell setting value, a ...
Added by cwheel3915 on Mon, 08 Nov 2021 18:05:29 +0200
Migrating from MySQL database to AWS DynamoDB
GO language -- migrate from MySQL database to Amazon DynamoDB
1, Foreword
The blogger is learning the Go language. It happens that the Leader asked to study whether the migration from MySQL database to DynamoDB can be realized by script
This blog post is a simple migration implemented by bloggers using Go language, because the code is no ...
Added by astoller on Mon, 08 Nov 2021 14:13:10 +0200
Research on device MODBUS go code of edgefbundry
bin
edgex-launch.sh
Purpose:
Start all EdgeX Go binaries (must be built before)
Premise:
Both Consul and MongoDB are installed and running
clear:
Kill the process edgex device MODBUS
technological process:
Go to cmd directory first (... / cmd)Execute the device MODBUS file in the directory and start it as an edgex device MODBUS pr ...
Added by shure2 on Sat, 06 Nov 2021 22:56:33 +0200
[Go language] detailed explanation of context package that beginners can understand: from introduction to mastery
Original link: Detailed explanation of context package that Xiaobai can understand: from introduction to masteryprefaceHello, everyone, I'm asong. Today, I want to share the context package with you. After a year of precipitation, I will start again and analyze it from the perspective of source code based on Go1.17.1. However, the difference th ...
Added by dannymm on Sat, 06 Nov 2021 11:43:52 +0200
Analysis of GO language heap
Analysis of GO language heap
Contents of this section
heap usageMethods provided by heapAnalysis of heap source codeUsing heap to implement priority queue
1. Use of heap
In the go language standard library container, three data types are implemented: heap,list,ring and list, which have been written in the previous article. Now we want to wr ...
Added by dustinkrysak on Thu, 04 Nov 2021 23:39:36 +0200
I see Go reflect[r] ɪˈ flekt] import "reflect" to create an SQL generator
The ideas of this paper refer to: https://golangbot.com/reflection/ , the content of this article is not just a simple translation of the original text. Please see the content below ~!
Prepare to take you to understand and master reflection knowledge points by using reflection as an example of a general SQL constructor. After reading ...
Added by shimano55 on Wed, 03 Nov 2021 03:42:01 +0200
Go escape analysis variables in heap or stack
catalogueGo escape analysis variables in heap or stackReferencesStack memoryEscape AnalysisCode caseEscape case of C codeGo code caseescape analysisEscape casesCase summaryEscape case IEscape case IIEscape case IIIEscape case 4Escape case 5Escape case 6Escape case 7Escape case 8summary
Go escape analysis variables in heap or stack
References
h ...
Added by mbaroz on Tue, 02 Nov 2021 11:30:27 +0200
Use golang 1.16 embed ded to change the packaging method of static resource files of [a golang based crawler movie station] project
Original text: A crawler movie station based on golang
In fact, it can also be said that because you want to change a display template for the original project, you want to use the embed ded feature to rewrite the packaging method of the original static resource file of the project.
Review the code written before to understand the usage of embe ...
Added by Pandolfo on Mon, 01 Nov 2021 07:25:15 +0200