Popular packages in the Go language

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

From learning go language. PDF translator

====

The FMT package FMT implements the formatted IO function, which is similar to C's printf and scanf, and the formatted phrase derives from the C

%V the default format value. When the structure is printed, the plus sign (%+V) increases the field

% #v Go-style value expression

%T a value expression with a type of Go style

IO provides the original IO operation interface, the main character is the OS package such as the original IO to encapsulate, add the following other related, is the device according to Yo abstract function on the public interface

Bufio This package implements a buffered Io, wind rain io. Reader and Io.write object, creating another object (reader and writer) that implements some text IO while providing buffering

Function

Sort the original sorting function for array and user-defined collections

StrConv provides the ability to convert a string to a base data type or to a string from a base data type

The OS provides platform-independent operating system function interfaces, designed for UNIX-style

Sync Sync provides basic synchronization primitives, such as mutexes

Flag implements the command parsing

Encoding/json JSON object that implements encoding and decoding definitions

Html/template data-driven templates for generating text output, such as HTML

The template is associated to the data structure for parsing. The template content points to the elements of the data structure (usually the fields of the structure or the keys of the map) to control the parsing and determine that a value is displayed. The template scans the structure for parsing, and the cursor determines the value in the current location clutter.

Net/http implements HTTP requests, corresponding and URL parsing, and provides extensible HTTP services and basic HTTP clients.

Unsafe unsafe contains all the unsafe operations on the Go program type. By not having to use this.

Reflect implements run-time reflection, allowing the program to manipulate objects through abstract types. By using the value to handle the static type interface{}, and by TypeOf to parse out the dynamic type information, an object with the interface type type is usually returned.

Ox/exec Package Execution External command

Related Article

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.