Golang Basic 7 – Function Function Function Declear A function can take zero or more arguments. Notice that the type comes after the variable name. […]
Author: kyle
Golang Basic 4 – Basic Operators
Golang Basic 4 – Basic Operators Arithmetic Operators Operators Operator Sense Description Sample Result Addition The ‘ ’ operator adds two operands. 3 2 5 […]
Golang Basic 6 – Basic for loop
Golang Basic 6 – Basic for loop for loop Go has only one looping construct, the for loop. The basic for loop has three components […]
Golang Basic 5 – If statement
Golang Basic 5 – If statement if if statement if boolVal{ // if boolVal is true, run this code block. } Sample root@go:l5/ # cat […]
Golang Basic 3 – Basic I-O functions
Golang Basic 3 – Basic I/O functions About fmt package Package fmt implements formatted I/O with functions analogous to C’s printf and scanf. The format […]
Golang Basic 2 – Basic Data Types && Variable
Golang Basic 2 – Basic Data Types && Variable Basic Data Types int, eg. 0, 1, 2, 3. float32, float64, eg. 3.14159. string, eg. “Hello […]
Golang Basic 1 – Install && Hello World
Golang Basic 1 – Install && Hello World What is Golang Official website: https://golang.org/ Go is an open source programming language that makes it easy […]
Resolve the word2vec installing error
1st time I try to install word2vec root@dev:/# pip install word2vec Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ Collecting word2vec Downloading https://mirrors.aliyun.com/pypi/packages/ce/51/5e2782b204015c8aef0ac830297c2f2735143ec90f592b9b3b909bb89757/word2vec-0.10.2.tar.gz (60kB) 100% |████████████████████████████████| 61kB 1.1MB/s Complete […]
Add Hosts for Ansible
System Env [root@ansible ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) [root@ansible ~]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release […]
How To Install Ansible
System Env OS info [root@ansible /]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) [root@ansible /]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch Distributor ID: CentOS Description: CentOS […]