DK1.5 introduces a new type--enumeration. In Java, although it is a "small" function, but to my development has brought "big" convenience.Usage One: ConstantsBefore JDK1.5, we define constants that are: publicstaticfianl ..... Now, with enumerations,
Func shellsort (num []int) { //increment number of separated forIncrement:=len (num)/2;increment>0; increment/=2 { //I, the larger array subscript, I, J to compare forI: = increment; i { //to
This is a creation in
Article, where the information may have evolved or changed.
Translate the original link reprint/reprint please indicate the source
English original link published in 2014/06/07
Goroutines
The go language has goroutines. They
This is a creation in
Article, where the information may have evolved or changed.
Download Address: https://golang.org/dl/
Download the compressed package
$ wget https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz
Unzip
This is a creation in
Article, where the information may have evolved or changed.
First day of Go basic learning
I. Keywords
Break default Func Interface Select
Case defer go map struct
Chan Else goto package Switch
Const Fallthrough If range
This is a creation in
Article, where the information may have evolved or changed.
Linux (Debian gnu/linux 9 (Stretch) 64-bit) settings
1. Download the latest version of Eclipse, I downloaded the eclipse-jee-oxygen-r-linux-gtk-x86_64.tar.gz
2.
This is a creation in
Article, where the information may have evolved or changed.
Recently busy and have no time to do the column, today decided to write a section on the internal implementation.
Internal implementation
The slice in Go is a data
This is a creation in
Article, where the information may have evolved or changed. The latest projects are developed using the go language, so you have the opportunity to get acquainted with the go language. When you write your code, you
This is a creation in
Article, where the information may have evolved or changed.
Go build an EXE, you can write more information in the Main.rc file, so that EXE appears more formal and official, specific topic can be seen on the renewal of the
This is a creation in
Article, where the information may have evolved or changed.
I want to let the mind fly for a while, but has gradually formed, then naked, this proposition can not be biased, more can not be extreme, as far as possible to walk
This is a created
article in which the information may have evolved or changed.
1. Download and install
Go official:
https://golang.org/
Download Address:
https://golang.org/dl/
Installation Documentation:
Https://golang.org/doc/install
This is a created
article in which the information may have evolved or changed.
Figure 1
Figure 2
From the comparison of Figure 1 and Figure 2 can be seen, figure 2 is less than the 15th line of the read operation, and then the result of the
This is a creation in
Article, where the information may have evolved or changed.
1. Download and install Vscode2. Install the Go plugin3.https://github.com/microsoft/vscode-go/wiki/go-tools-that-the-go-extension-depends-on the list of extensions
This is a creation in
Article, where the information may have evolved or changed.
Some time ago when writing code, encountered a strange problem, that is, the return of nil value, not nil.
The reason for this problem is that the nil comprehension of
This is a created
article in which the information may have evolved or changed.
Using a single Chan to perform a concurrent task, the maximum time-consuming task is the most time-consuming sub-task
Func Sendchan (data int) { T: = 10-data
This is a creation in
Article, where the information may have evolved or changed.
Golang's import @ Ruby's require
We're just taking this opportunity to review Ruby's require first.
require(name) → true or false
Require loads the specified file,
This is a creation in
Article, where the information may have evolved or changed.
Topic
Problem Link: https://leetcode.com/problems/keyboard-row/#/descriptionGiven a List of words, return the words that can is typed using letters of alphabet on only
This is a creation in
Article, where the information may have evolved or changed.
Topic
Given a string, need to reverse the order of characters in each word within a sentence while still preserving WhiteSpa CE and initial word order.
Example 1:
This is a creation in
Article, where the information may have evolved or changed.
Guided reading: machine learning and deep learning is a hot topic in recent years, it is a very disturbing problem to choose from many machine learning platforms. In
This is a creation in
Article, where the information may have evolved or changed.
Linux (CentOS redhat) installation
1. Access to the official address:
https://golang.org/dl/# #由于相关ZC你懂的, better be able to turn down the wall
2. Download the 64-bit
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.