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
Description of special positional parameter variables commonly used by shellOriginal: http://m.blog.itpub.net/15498/viewspace-2151142/$ $ Gets the file name of the currently executing shell script, including the script path if the execution script
Directly on the code:package mainimport "fmt"func main() { var num *int32 var i int32 = 5 // 针对*int32的,先创建一个i类型,然后取i的地址,赋值给*int32 num = &i fmt.Println("=====>:\t", num) fmt.Println("=====>:\t", *num)}Operation Result:=====>: 0xc042
To determine the data types in the Go language, this article describes three ways.Method One: Use I. (type) combined with NULL interface (interface{})func main() { v1 := "中国你好" v2 := 20 var v3 byte = 65 fmt.Printf("v1的数据类型为:%s\n",
Slicing Slice theory knowledge
It is not an array by itself, it points to the underlying array
As an alternative to programming arrays, you can associate local or all of the underlying array
As a reference type
You can create
Spring provides a number of built-in transaction manager implementations (source Link: https://www.cnblogs.com/qiqiweige/p/5000086.html):
Datasourcetransactionmanager : located in the Org.springframework.jdbc.datasource package, the data source
1.bytes. Equal (A []byte,b []byte) bool compares the length of a and B with the same bytes, and a nil parameter is the same as an empty slice. 2.reflect. Deepequal (x, y interface{}) booldeepequal feedback whether X and Y are deep equivalents. The
Original: "C #" list to go heavyThe Enumerable.distinct method is a common LINQ extension method that belongs to the System.Linq Enumerable method, which can be used to remove duplicate elements from an array, a collection, and to customize the
This is a created
article in which the information may have evolved or changed.
Before writing the habit of c/cpp, all know that you can use the Daemon function on Linux to facilitate the implementation of the daemon. Recently switched to go, want
This is a creation in
Article, where the information may have evolved or changed. 2018-3-12, shortly before Monday, I started working on a random Simulation environment Builder project, and the heraldry constructor was just the initial part of the
This is a creation in
Article, where the information may have evolved or changed. My environment when ThinkPad S430, Ubuntu 16.04, 64 benefit from the forum of the predecessors of the guidance, now the installation process is recorded as follows
This is a created
article in which the information may have evolved or changed. Share Vue.js's entry-level family bucket tutorial: 1.vue.js Getting Started and improved: [Http://xc.hubwiz.com/course/vue.js] (http://xc.hubwiz.com/course/ 592ee9b2b34
This is a creation in
Article, where the information may have evolved or changed.
One of the details about a type holding a method is:For a named specific type T, some of its methods are recipients of the type T itself while others are pointers to T.
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.
How to use pointers
Pointer usage Flow:
Defines a pointer variable.
Assigns a value to a pointer variable.
Accesses a value in a pointer variable that
This is a creation in
Article, where the information may have evolved or changed. Think of my hostility is very heavy and I like godless people welcome someone to give me criticism to correct my thoughts recently continued in the interview 10 times
This is a creation in
Article, where the information may have evolved or changed. Blog address: * [go-reflect-deepequal] (https://github.com/Chasiny/Blog/blob/master/blog/go/package/ GO-REFLECT-DEEPEQUAL.MD # # # # # # # # # # # # # # # # # # # # #
This is a creation in
Article, where the information may have evolved or changed.
Today, we encounter a problem with the calculation of a floating point number after interception. After the interception of floating-point numbers, and then operation,
This is a creation in
Article, where the information may have evolved or changed.
This is the Go second article in the series, which mainly introduces the various usages of if/else, switch and functions.
Series Finishing:
Go Part I: Variables,
This is a creation in
Article, where the information may have evolved or changed. A struct is a series of fields that contain names and types. Usually like this: "' Gopackage mainimport" fmt "type person struct {name Stringage int32}func main ()
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