Original link: http://www.cnblogs.com/xudong-bupt/p/3509567.htmlUsually in writing C + + code when not pay attention to the use of const, has long been the usage of the const forgetWrite a little something to deepen the impression#include using
Package Main;import ("Os/user" "FMT") func main () {//returns the current user's structure u, _: = user. Current (); Fmt. Println (u.name);//user home directory FMT. Println (U.homedir);//user name FMT. Println (u.username);//group IDFMT.PRINTLN
In the normal web development, we often need to write some JS class library, when we publish our products, we have to distribute the source code, but this will reveal their own code. It feels good to use the jasob today. Using Jasob, our JavaScript
This is a creation in
Article, where the information may have evolved or changed.
Overview
Name
Role
Note
Reader
Implementation of IO. Reader's Cache
Writer
Implementation of IO. Writer's
This is a creation in
Article, where the information may have evolved or changed.
selectAnd switch is the go language in the branch operation of two ways, each has a different application scenarios.
Select
selectCan only be applied to channel
This is a creation in
Article, where the information may have evolved or changed.
Catalogue [−]
Gofmt
Gocyclo
Interfacer
Deadcode
Gotype
Misspell
Staticcheck
Gosimple
Goconst
Original: Lint your #golang code like
This is a creation in
Article, where the information may have evolved or changed.
Build a MySQL Environment
Mysql.app
docker run --net=host -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=letchat -d hub.c.163.com/library/mysql:latest
1. Compile
This is a creation in
Article, where the information may have evolved or changed.
Array
Declaring an array
Arrays are also declared in an inverted manner, and the array length needs to be specified when declaring an array. So declaring an array is
This is a created
article in which the information may have evolved or changed.
I. Download and decompress GO Environment pack
Download go1.8.3.linux-amd64.tar.gz on the official website, then right-click here. Extract
Two. setting System
This is a created
article in which the information may have evolved or changed.
After declaring a new type, you need to answer a question before declaring a method of that type: what is the nature of this type. If this type adds or deletes a value,
This is a creation in
Article, where the information may have evolved or changed.
Preface
This is my simple book, the first article, write not in place, I hope you understand the spectators.
I have been engaged. NET development work, recently in
This is a creation in
Article, where the information may have evolved or changed.
Java Brush Topic Basics
Write in front
Lintcode and Leetcode the benefits of brush problems: only care about the implementation of the function, do not have to deal
This is a created
article in which the information may have evolved or changed.
A Redis group Agent with a very simple feature was recently written. The code is here.
In the process of writing, the more interesting is:
RESP Structure of Redis
This is a creation in
Article, where the information may have evolved or changed.
Write in front
Golang Log package content is not much, to tell the truth, directly used to do the journal development is simple. The main feature is missing some
This is a created
article in which the information may have evolved or changed.
The "+" can be used to merge strings in go, but this is very inefficient, and each time a merge is created, a new string must be traversed and copied once . The
This is a creation in
Article, where the information may have evolved or changed.
In the Golang language, the data type is not many, but enough, the development project process, slice belongs to one of the most commonly used data structure, the
This is a creation in
Article, where the information may have evolved or changed.
Derived from the PLAN9 assembly implementation. Saved in the. s file, the compiler compiles and links automatically.
The content of this article is based on AMD64
This is a created
article in which the information may have evolved or changed.
Today's third lesson: Lists, queues, and stacks, small friends. The list is the foundation of many data structures in computer science, and it is very important to use
This is a created
article in which the information may have evolved or changed.
The channel in Go
Channel is type-dependent1. Disclaimervar channame chan chantype2. Definitionch := make(chan int)3. Basic operationch When the buffer is not set,
This is a creation in
Article, where the information may have evolved or changed.
1, local test Docker program
Problem encountered: The Docker program was started using the system's environment variables.It is OK when the server is running, but
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service