Press "Enter" to skip to content

Hacking Linux

Golang Basic 8 - Pointer

Golang Basic 8 - Pointer Pointer A pointer holds the memory address of a value. Declear Pointers in Golang are very similar to pointers in…

Golang Basic 7 - Function

Golang Basic 7 - Function Function Function Declear A function can take zero or more arguments. Notice that the type comes after the variable name.…

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 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…