Obtain https certificate expiration time using Zabbix-agent2 custom plug-in

WeChat Public Number: Operations and Maintenance Development Story, Author: wanger demand For people who often maintain the website, they need to deal with https certificates frequently. Generally, the validity period of https certificates is one year. Once the certificates expire, the loss to the company is enormous. Last year NetEase mail ...

Posted by MikeA on Mon, 17 Jan 2022 20:00:13 +0100

Is the Go language parameter passed by value? Or pass it on?

For understanding a language, we will be concerned about whether the parameters are passed values or references when we call a function? In fact, value transfer and reference transfer are an old topic. Researchers have this concept, but it may not be very clear. For those of us who do Go language development, we also want to know what transmiss ...

Posted by jvquach on Mon, 17 Jan 2022 17:57:34 +0100

[golang] leetcode primary - rotating array & duplicate elements exist

Question 1 rotate arrayTopic informationGive you an array, rotate the elements in the array to the right K , positions, where k , is a non negative number. Example 1:Input: nums = [1,2,3,4,5,6,7], k = 3Output: [5,6,7,1,2,3,4]Explanation:Turn right for one step: [7,1,2,3,4,5,6]Turn right for 2 steps: [6,7,1,2,3,4,5]Rotate right for 3 steps: [5 ...

Posted by noiseusse on Mon, 17 Jan 2022 17:55:09 +0100

Object oriented programming in Go language

1, Object oriented features in Golang Object oriented programming (OOP) is also supported in Golang, but it is different from traditional object-oriented programming. It is not a pure object-oriented language. There are no classes in Golang. The structure of Go language has the same status as the classes of other programming languages. It can ...

Posted by injh85 on Mon, 17 Jan 2022 15:05:54 +0100

Implementation of sword finger offer go version Chapter 6: various abilities in interview

Main purpose of this chapter This chapter mainly practices communication ability, learning ability, knowledge transfer ability, abstract modeling ability, etc. This requires a solid mathematical foundation. If not, I believe many people will read a problem for a long time like me. To understand it, we need to use video and draw pictures. This ...

Posted by podarum on Mon, 17 Jan 2022 10:14:54 +0100

Go language basic array

This paper mainly introduces the array in Go language and its basic use. An array is a collection of elements of the same data type. In Go language, the array is determined from the time of declaration. When used, the array members can be modified, but the array size cannot be changed. Basic syntax: // Define an array a with a length of 3 and ...

Posted by ppowell on Mon, 17 Jan 2022 06:05:12 +0100

Golang concurrent wait

Q & A in the previous section In the previous section, a reader asked how big the goroutine stack size is. I made a detailed query About goroutine stack size Official documents As described in, the minimum is 4kb before 1.2, becomes 8kb at 1.2, and can be used SetMaxStack Set the maximum stack size. stay runtime/debug The package can con ...

Posted by jateeq on Mon, 17 Jan 2022 04:24:31 +0100

Cobra development of Golang

One background At the moment when the cloud is in its prime, I believe many people have heard of Kubernetes/etcd. When we look at its source code or carry out secondary development, we can find that it uses a command journey library cobra, which is an artifact used to write command lines and provides a scaffold for quickly generating Cobra bas ...

Posted by BigJohn on Mon, 17 Jan 2022 00:54:55 +0100

Golang sort -- sorting algorithm

1. Overview Sort package implements four basic sorting algorithms: insert sort, merge sort, heap sort and quick sort. However, these four sorting methods are not public, and they are only used inside the sort package. Therefore, it is not necessary to consider which sort method should be selected when sorting data sets, as long as sort is imple ...

Posted by aminnuto on Sun, 16 Jan 2022 20:48:44 +0100

Write a Gin application running on the Kubernetes cluster from scratch

Experimental premise You need to have a macOS development environment. This article takes this as an example. Please build other types of development environments by yourself.You need to know something about YAML, a language specially used to write configuration files.You need to have some basic knowledge of Docker.You need to understand some ...

Posted by nileshkulkarni on Sun, 16 Jan 2022 20:02:52 +0100