官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 烟台市| 新闻| 驻马店市| 腾冲县| 瓮安县| 长乐市| 塔城市| 安丘市| 怀安县| 聂拉木县| 顺平县| 吉首市| 新和县| 樟树市| 乌拉特前旗| 巴中市| 山丹县| 平谷区| 崇义县| 陆河县| 越西县| 南华县| 陆良县| 望谟县| 交城县| 襄汾县| 偃师市| 湖口县| 旌德县| 石家庄市| 呈贡县| 霍林郭勒市| 十堰市| 新巴尔虎左旗| 黄骅市| 皮山县| 北碚区| 天等县| 漠河县| 永兴县| 二手房|