View disk space under Linux [go]

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      

A summary of the method of string cutting in go language programming

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"))

Go re-order

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

Python crawler crawls go data

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

The interface of Go language

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

Golang use of official tools DEP

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-

Golang Waitgroup Source Analysis

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

How do I choose a development language for blockchain entry?

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

Golang Socket Programming (III): Concurrent server

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

System Inspection Application (i)

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 ():

Type assertions in the Go language

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)]

Golang Custom JSON encode

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

Golang Open Source Project

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

Data structure of the Go language: stacks and queues

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

To set access static files in the Golang API

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(

Append in Go language causes insufficient memory

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

Recently wrote an app to alert you to send WeChat template messages

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

Onlyoffice Document collaboration rights development, leveraging Casbin and Golang languages

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

Go Part I: Variables, constants, and enumeration types

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

Parsing the function call of the Go language

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

Total Pages: 1117 1 .... 811 812 813 814 815 .... 1117 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.