This article was reproduced from: HTTPS://GITHUB.COM/TONGXINV/ONEBOOK/ISSUES/9Linux kernel segment attribute mechanism
Taking Subsys_initcall and Module_init as an example
Subsys_initcall is a macro that is defined in linux/init.h .
Tags: dllc++2010threadlibrarycThis article has been included in:Classification:C + +(103) Author of similar articlesX
first, the creation of DLLsCreate Project: Win32->win32 project, Name: MyDLLSelect DLL (D) to finish.1. New header file
Original link Address: http://blog.csdn.net/lanruoshui/article/details/5090710The principle is as follows:1. Dynamic loading and invocation using reflection.Assembly Assembly=assembly.loadfrom (DllPath); Use the DLL's path to load and load the
This is a creation in
Article, where the information may have evolved or changed.
0x01 Preface
The syntax of the go language is somewhat different, and the go approach seems obscure compared to other object-oriented languages.
Definition of the 0x02
This is a creation in
Article, where the information may have evolved or changed.
Write in front
There are a lot of connections for the detection of service-side TIME_WAIT status.
netstat -nat | grep :8080 | grep TIME_WAIT | wc -l
This is a creation in
Article, where the information may have evolved or changed.
Previously wrote a python modifier functional programming, this mode is easy to put some functions into other functions, you can make your code more simple, you can
This is a created
article in which the information may have evolved or changed.
Boltdb Startup and initialization
Based on the previous summary, boltdb only a single file is used for persistence, and at boltdb startup, the corresponding
This is a creation in
Article, where the information may have evolved or changed.
Boltdb
boltdbis an embedded K-V storage engine implemented by Golang. In the source code of BOLTDB, Doc.go has a brief description of it. It provides transaction, acid
This is a creation in
Article, where the information may have evolved or changed.
About sync. Rwmutex
About the priority level
In order to emulate barrier in Pthread, the Rwmutex mate blocking pipeline is used in the code. One of the key
This is a creation in
Article, where the information may have evolved or changed.
Golang JSON usage details (i)
Brief introduction
The JSON format is one of the most commonly used serialization formats in our daily life, and the go language, as a
This is a creation in
Article, where the information may have evolved or changed.
Don't talk nonsense, go straight on ~
Install GO1.8 under Linux
1, download the version of Go
Domestic address Source: https://dl.gocn.io/
Choose the source code
This is a creation in
Article, where the information may have evolved or changed.
1,alpine Linux is very small
First Alpine is very small, installed on the bash after the 5MB.
Golang don't need any other dependencies to see if they can run on
This is a creation in
Article, where the information may have evolved or changed.
VS Code powerful Golag editing environment
Brief introduction
I now basically only use Vscode, Microsoft want to seriously do a thing, really is the quality of
This is a creation in
Article, where the information may have evolved or changed.
Insert Sort
Insert Sort (English: insertion sort) is a simple and intuitive sorting algorithm. It works by constructing an ordered sequence, for unsorted data, to
This is a creation in
Article, where the information may have evolved or changed.
Introduction: Before using the small seven kill kit to do not kill (I will upload to the network disk), is the PE (. bat,. exe) files appear in the replacement of the
This is a created
article in which the information may have evolved or changed.
// go语言运行shell命令package mainimport ( "os/exec" "fmt" "os" "strings")func main() { var ip, whoami []byte var err error var cmd *exec.Cmd //
This is a created
article in which the information may have evolved or changed.
Objective
Every time you learn a new language, the environment you want to build is the most vexing problem.The following is a summary of the self, but also hope to
This is a created
article in which the information may have evolved or changed.
The Elastichd is a elasticsearch visualization application. Do not rely on ES plug-in installation, more convenient, the navigation bar directly fill in the
This is a creation in
Article, where the information may have evolved or changed.
Go Language Log output
Bits or ' Ed together to control what's printed.//there is no control over the order they appear (the order listed//her e) or the format they
This is a creation in
Article, where the information may have evolved or changed.
Official SQL
func main() {type Userinfo struct {Id uintUsername stringDepartment stringCreated string}db, err := sql.Open("mysql","root:root@tcp(localhost:3306)/gorm")
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service