If you want to see how much space the disk has left, of course it is the DF command. [[email protected] ~]# df-h file system capacity already used% mount point available /de V/sda2 14g 11G 2.6G 82%/ /dev/sda1
1.func fields (s string) []string, this function is to divide the string by 1:n a space, and the last return is[]string's slicesCopy CodeThe code is as follows:Import ("FMT""Strings")Func Main () {Fmt. PRINTLN (Strings. Fields ("Hello Widuu Golang"))
Input Description:Enter multiple lines, first enter the number of random integers, and then enter the corresponding number of integersOutput Description:Returns multiple rows, processed resultsInput Example 1:11102040326740208930040015Output Example
Previous configuration work has been mentioned in a previous blog post and is now crawled directlyI. Creating a ProjectScrapy Startproject PutuTwo. Creating a spider File1 scrapy genspider patubole patubole.comThree. Start writing the patubole.py
Interface theory
An interface is a collection of one or more method signatures
As long as a type has all the method signatures for that interface, that interface is implemented, without showing which interface the declaration
This is a creation in
Article, where the information may have evolved or changed.
First, install the article
1. Download release version. Open page https://github.com/golang/dep/releases, download the latest Dep-windows-amd64.exe2. Put Dep-windows-
This is a creation in
Article, where the information may have evolved or changed.
Sync for Golang 1.9. Waitgroup for analysis, the same as the Golang 1.10, except panic that it will be changed to throw something other than the others.Source code
This is a creation in
Article, where the information may have evolved or changed. Introduction to blockchain technology, what are the programming languages involved? In this article, you'll learn about the three blockchain types of bitcoin, Super
This is a creation in
Article, where the information may have evolved or changed.
I. Overview
The previous article implemented a server and client communication, completed the function of lowercase capitalization, but a single-tasking response: The
This is a creation in
Article, where the information may have evolved or changed.
System inspection Applications (1)
Test environment:
ubuntu16.04
golang:go1.8
Content
Getenvfunc (): Get environment variable functionGetenvsvr ():
This is a creation in
Article, where the information may have evolved or changed. [] (https://raw.githubusercontent.com/studygolang/gctt-images/master/type-assertion/1_ P6c6i0nihnoilrbsahd3la.jpeg) [https://en.wikipedia.org/wikipsycho_ (1960_film)]
This is a creation in
Article, where the information may have evolved or changed.
Golang JSON Custom encode
Brief introduction
Golang Native provides very handy JSON processing, such as when a struct is converted to JSON, using ' JSON: ' name ' to
This is a created
article in which the information may have evolved or changed. Google has officially maintained a list of open source projects based on the Go language: https://github.com/golang/go/wiki/Projects There are a lot of good projects
This is a creation in
Article, where the information may have evolved or changed. In [Previous posts] (https://studygolang.com/articles/12686), we explored the list and how to apply it to the actual application. In this article, we will continue to
This is a created
article in which the information may have evolved or changed.
Today a little brother encountered the problem of access to static files always 404, the normal settings are as follows:
package mainimport ("net/http""fmt")func main(
This is a creation in
Article, where the information may have evolved or changed. This is a short note about the memory shortage of the Go language you might encounter. As you know, the slice of the Go language is powerful and easy to use. Through
This is a created
article in which the information may have evolved or changed. > here [GitHub address] (Https://github.com/SugarAYuan/WeChatAlarm) > in the future I intend to integrate the log system, as well as timing scripts and so on, then
This is a created
article in which the information may have evolved or changed.
Login user, for the document that has been set permission, will be based on the rights database, compared to the user name, when related to the user, the corresponding
This is a creation in
Article, where the information may have evolved or changed.
GoIn the first article, I will refine the basic points that are used frequently, and for those children who have just begun to get started Go , the foundation is not
This is a creation in
Article, where the information may have evolved or changed. Let's take a look at a few simple examples of go function calls. By studying the assembly code generated by the go compiler for these functions, let's look at how
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