当前位置:网站首页>Golang source package collection

Golang source package collection

2022-06-26 07:08:00 Talk to me

  • archive/tar and /zip-compress: Compress ( decompression ) File function .
  • fmt-io-bufio-path/filepath-flag:
    • fmt: The function of formatting input and output is provided .
    • io: Basic input and output functions are provided , Most of them are encapsulation around system functions .
    • bufio: Encapsulation of buffered I / O function .
    • path/filepath: Used to operate on the target Filename Path in the current system .
    • flag: Operation on command line parameters .  
  • strings-strconv-unicode-regexp-bytes:
    • strings: Provides operations on strings .
    • strconv: Provides the ability to convert strings to base types .
    • unicode: by unicode Type string provides special functions .
    • regexp: Regular expression function .
    • bytes: Provide the operation of character segmentation .
    • index/suffixarray: Substring quick query .
  • math-math/cmath-math/big-math/rand-sort:
    • math: Basic mathematical functions .
    • math/cmath: The operation of the plural .
    • math/rand: Pseudo-random number generation .
    • sort: Sorting and customizing collections for arrays .
    • math/big: The realization and calculation of large numbers .   
  • container-/list-ring-heap: Implement operations on collections .
    • list: Double linked list .
    • ring: Circular list .
  • builtin: Describes the allowed godoc Documents that provide language identifiers .
  • compress/bzip2 /flate /gzip /lzw zlib
    • compress/bzip2: Realized bzip2 Decompression of .
    • flate: Realized DEFLATE Data compression format , Such as RFC 1951 Described in .
    • gzip: Realized gzip Format compressed file read and write .
    • lzw: Realized Lempel-Ziv-Welch Compressed data format .
    • zlib: Realized zlib Read and write data compression format .
  • context: Defined Context type , It spans API The deadline is carried between the boundary and the process , Cancel the value of the signal and other request ranges .
  • crypto crypto/md5
    • crypto: A collection of common cryptographic constants
    • crypto/md5: md5 encryption
    • crypto/sha1: sha1 encryption
  • errors: The method of operating error is realized
  • expvar: Provide standardized interfaces for common variables .
  • hash: A common interface implemented by all hash functions .
  • html: HTML The function of transcoding and escaping text .
  • image、/color、/draw、/gif /jpeg png
    • image: Realize the basic two-dimensional graphics library .
    • image/color: Color basic library
    • image/draw: Provide image synthesis function
    • image/gif:gif Image decoders and encoders
    • image/jpeg:
    • image/png:
  • sort: Provides primitive functions for sorting slices and user-defined collections .
  • unsafe: Contains some breaks Go Language “ Type safety ” The order of , The general program will not be used , Available in C/C++ In the call of the program .
  • syscall-os-os/exec:
    • os: Provide us with a platform independent operating system functional interface , Adoption class Unix Design , Hide the differences between different operating systems , Make different file systems and operating system objects behave the same .
    • os/exec: Provides us with the way to run external operating system commands and programs .
    • syscall: The outer package at the bottom , Provides the basic interface of the underlying call of the operating system .
  • time-log:
    • time: Basic operation of date and time .
    • log: Record the log generated when the program is running , We'll use it later in the chapter .
  • encoding/json-encoding/xml-text/template:
    • encoding/json: Read and decode and write and encode JSON data .
    • encoding/xml: ordinary XML1.0 Parser .
    • text/template: Generative image HTML The same data and text mixed data-driven .
  • net-net/http:
    • net: Basic operation of network data .
    • http: Provides an extensible HTTP Servers and underlying clients , analysis HTTP Request and reply .
  • runtime: Go The interaction of the program at runtime , For example, garbage collection and process creation .
  • reflect: Realize reflection through program runtime , Let the program operate on any type of variable .
  • sql: Provide the data base with the surrounding SQL ( Or class SQL) The general interface of
原网站

版权声明
本文为[Talk to me]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206260702002854.html