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

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.

主站蜘蛛池模板: 潼南县| 合江县| 汝阳县| 甘肃省| 博湖县| 六盘水市| 陇川县| 忻城县| 扬州市| 吕梁市| 元谋县| 宁国市| 阜新| 日照市| 兴隆县| 仁布县| 平乐县| 阿拉善左旗| 满城县| 富民县| 海晏县| 潮安县| 临澧县| 平安县| 东乡族自治县| 遂昌县| 横峰县| 乡城县| 麻栗坡县| 灵台县| 子洲县| 财经| 隆尧县| 隆昌县| 陇川县| 崇州市| 马尔康县| 西充县| 濉溪县| 张家口市| 疏附县|