logrus: a log framework of go
summary
Logrus is a log system developed for go language. In this article, we will make a record of some problems encountered in the process of starting logrus. This record refers to This article . Let's start!
Upper hand
package main
import (
log "github.com/sirupsen/logrus"
)
func main() {
log.WithFields(log.Fields{
"animal": "wal ...
Posted by JamieinNH on Wed, 13 Nov 2019 09:44:26 -0800
[daily] gocron source reading - use go mod to manage and start gocron depending on source code
Starting from Go1.11, golang officially supports the new dependency management tool, go modgo mod download: download the dependent module s to the local cachego mod edit: edit go.modgo mod graph: print module dependency graphgo mod init: initialize go.mod in the current directory (that is, a new go.mod file will be created)Go module tidy: reorg ...
Posted by dineshthakur on Wed, 13 Nov 2019 06:44:41 -0800
Why does node sass always fail to install?
Original linkauthor Ping Hai Li
Node sass is a very common dependency package in our development, and it is also the most common dependency for long installation time and error reporting. There are many reasons. Before we talk about the error reporting reasons, let's analyze the installation process of node sass (the following node version is ...
Posted by tourer on Wed, 13 Nov 2019 04:10:26 -0800
Learning of web service request based on ksoap2 in Android
[learning stage]
WebService network request?
In fact, this is the first time I met this need because some ERP related businesses need such a request mode.
Start learning WebService
① Baidu search, of course, found a learning blog here https://blog.csdn.net/swjtugiser/article/details/76840353
Use the ksoap2 framework to request and dow ...
Posted by will_1990 on Tue, 12 Nov 2019 12:02:24 -0800
Common operations of python xml
In the target detection task, input the coordinates of a picture and target box. After the annotation tool is completed, the coordinates are usually saved in the xml file. When we need to modify the annotation data according to our own business needs, it is more appropriate to modify the xml file directly because of the high co ...
Posted by uatec on Tue, 12 Nov 2019 08:45:41 -0800
http.createServer process analysis of nodejs
github:https://github.com/theanarkh/read-nodejs-code
Here is the code for nodejs to create a server. Let's analyze the process together.
var http = require('http');
http.createServer(function (request, response) {
response.end('Hello World\n');
}).listen(9297);
First, let's go to the lib/http.js module to see the code of this function.
func ...
Posted by Morbius on Mon, 11 Nov 2019 23:11:45 -0800
Build Vuepress blog/document system: Build, PDF export, SEO, auto compile, auto deploy, domain name, HTTPS, archive, etc.
This is a personal (pdai) original article, please indicate the source for reprinting and refer to the effect of blog building: [Java Full Stack Knowledge System] ( https://www.pdai.tech)
Article Content Directory
Article Content Directory
Part I - Building Blog/Document System
Blog/Document Preface
What are the options
What attempts have ...
Posted by DannyM on Mon, 11 Nov 2019 19:49:02 -0800
Zookeeper as configuration center usage instructions
To keep the data highly available, we use Zookeeper as the configuration center to save the data.SpringCloud also has an official description of Zookeeper integration: spring_cloud_zookeeper
Here is a practical explanation of how to use it.
1. Add Dependent Packages
<!-- Operations and Maintenance Monitoring -->
<dependency>
< ...
Posted by Rdam on Mon, 11 Nov 2019 18:43:35 -0800
Error reported in jpcap experiment java.lang.NoSuchMethodError: setPacketValue, getPacket always gets null result
In the Jpcap experiment, the running program always reported an error, the information is as follows:
Error statement:
jpcap = JpcapCaptor.openDevice(devices[0],caplen, promiscCheck,20);
The result of getPacket() function execution has not been null, and no answer has been found on the Internet
Finally, we found that it w ...
Posted by homerjay on Mon, 11 Nov 2019 15:02:33 -0800
REDIR + supervisor port mapping and monitoring
I. redir
Redir can map the port of a machine to a port of the machine, supporting TCP connection.Git address: https://github.com/troglobit/...Download: git clone https://github.com/troglobit/...
Installation:
# cd /redir
yum -y install automake
yum -y install autoconf
# ./autogen.sh
# ./configure //The default directory is / usr/local. I ...
Posted by gca07738 on Sun, 10 Nov 2019 13:36:27 -0800