[docker series] docker learning VI, data volume container

Dockerfile Dockerfile is the build file used to build the docker image. We will talk about dockerfile in detail in the next issue, and use it here first It is a command script. Through this script, we can generate the image we want. The image is layered, layer by layer. The script is also a command one by one. Each command is a layer Let's loo ...

Posted by kanetan on Mon, 22 Nov 2021 05:05:03 -0800

Remember the performance optimization of 18 times at a time

backgroundRecently, a self-developed Dubbo registration center in charge often received alarms about CPU utilization, so it carried out a wave of optimization with good results. Therefore, it plans to share the thinking and optimization process, hoping to help you.What is the Dubbo registration center? I'll draw a sketch. Just feel it a little. ...

Posted by paul_20k on Sun, 21 Nov 2021 20:24:34 -0800

map data type in Golang

Today, let's learn about the map data type in golang, simply summarize the basic syntax and usage scenarios, and don't go deep into the bottom. What is the map type? Having done PHP, it is no stranger to the data type of array. Arrays in PHP are divided into index arrays and associative arrays. For example, the following code:// Index array [th ...

Posted by pplexr on Sun, 21 Nov 2021 12:53:47 -0800

[Golang] - use time.Ticker to do scheduled tasks

1, Foreword       golang's time.Ticker is generally used to execute tasks as a time cycle. 2, demo       This is an example posted on the official website. Its function is to output the current time every 10s. package main import ( "fmt" "time" ) func main() { ticker := time.NewTicker(time.Second) defer ...

Posted by dminadeo on Sat, 20 Nov 2021 22:28:32 -0800

Go pointer, structure, slice

package main import "fmt" func main() { var a int = 10 fmt.Printf("Address of variable: %x\n", &a ) } The format of pointer declaration is as follows: var var_name *var-type Pointer usage process: Define pointer variables.Assign values to pointer variables.Access the value pointing to the address in the pointer variabl ...

Posted by littledragon on Sat, 20 Nov 2021 09:44:20 -0800

Golang standard library binary

binary package implements a simple conversion between a sequence of numbers and bytes. 1,ByteOrder ByteOrder specifies how to convert a sequence of bytes to a 16, 32, or 64 bit unsigned integer: type ByteOrder interface { Uint16([]byte) uint16 Uint32([]byte) uint32 Uint64([]byte) uint64 PutUint16([]byte, uint16) PutUint32([]byte, uint32 ...

Posted by dewed on Sat, 20 Nov 2021 04:43:34 -0800

MONGDB installation and use

MONGDB installation and use Let's review what we shared last time: How to use log packagePrinciple and implementation of log packageCustom log If you are still interested in GO's log package, you can check the article How to play GO's log? Today, let's play a simple mongodb installation and use Introduction to MONGODB MongoDB is a databas ...

Posted by cgraz on Fri, 19 Nov 2021 16:57:38 -0800

Follow the old cat to do GO basic advanced

Looking back on my last blog, I mainly shared with you the basic syntax of GO language, including variable definition, basic types, conditional statements and circular statements. Then this article starts to synchronize with you the advanced level of GO language foundation.Definition of functionIn fact, some functions have been written in many ...

Posted by guttyguppy on Fri, 19 Nov 2021 16:13:16 -0800

Follow the old cat to get the GO container

Early reviewThe previous chapter mainly shared with you the definition of functions in GO language and the simple usage of pointers in GO language. In this chapter, old cat will learn about containers in GO language with you.arrayDefinition of arrayWhen it comes to containers, people with programming experience must first think of arrays. Of co ...

Posted by nikefido on Fri, 19 Nov 2021 13:46:23 -0800

QQBot and go cqhttp lazy 5-minute nanny installation tutorial

I run the tool Xshell 1, Install pagoda panel Skip directly installed yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh 6dca892c Enter the command in the Xshell 6 command window and press enter. The installation will be successful in 10 minutes     Note ...

Posted by daloss on Thu, 18 Nov 2021 21:22:51 -0800