- Go Systems Programming
- Mihalis Tsoukalos
- 183字
- 2021-07-02 18:08:07
About Go packages
Packages are for grouping related functions and constants so that you can transfer them easily and use them in your own Go programs. As a result, apart from the main package, packages are not autonomous programs.
There exist many useful Go packages that come with each Go distribution including the following:
- The net package: This supports portable TCP and UDP connections
- The http package: This is a part of the net package and offers HTTP server and client implementations
- The math package: This provides mathematical functions and constants
- The io package: This deals with primitive input and output operations
- The os package: This gives you a portable interface to the operating system functionality
- The time package: This allows you to work with times and dates
For the full list of standard Go packages refer to https://golang.org/pkg/. I strongly advise you to look into all the packages that come with Go before you start developing your own functions and packages because there is a realistic chance that the functionality you are looking for is already available in a standard Go package.
推薦閱讀
- 黑客攻防從入門到精通(實(shí)戰(zhàn)秘笈版)
- C語言程序設(shè)計(jì)案例教程(第2版)
- 新一代通用視頻編碼H.266/VVC:原理、標(biāo)準(zhǔn)與實(shí)現(xiàn)
- Mastering QGIS
- Spring Cloud、Nginx高并發(fā)核心編程
- C語言程序設(shè)計(jì)案例式教程
- Visual Basic學(xué)習(xí)手冊
- Visual C++應(yīng)用開發(fā)
- Scientific Computing with Scala
- Mastering Xamarin.Forms(Second Edition)
- RESTful Java Web Services(Second Edition)
- Unity 2018 Shaders and Effects Cookbook
- Oracle GoldenGate 12c Implementer's Guide
- Unity&VR游戲美術(shù)設(shè)計(jì)實(shí)戰(zhàn)
- Hacking Android