01 2022 档案

摘要:Table of Contents 目录 Introduction 简介 Getting Started 开始 Data Structures 数据结构 Introducing the net/http package (an interlude) net/http包简介(插曲) Using net 阅读全文
posted @ 2022-01-13 14:55 菜鸟吊思 阅读(417) 评论(0) 推荐(0)
摘要:目录 Prerequisites 前提条件 Design API endpoints 设计API终节点 Create a folder for your code 为你的代码创建文件夹 Create the data 创建数据 Write a handler to return all items 阅读全文
posted @ 2022-01-11 14:17 菜鸟吊思 阅读(785) 评论(0) 推荐(0)
摘要:In this last topic, you'll learn a couple new go commands. While the go run command is a useful shortcut for compiling and running a program when you' 阅读全文
posted @ 2022-01-10 17:53 菜鸟吊思 阅读(364) 评论(0) 推荐(0)
摘要:Now that you've gotten your code to a stable place (nicely done, by the way), add a test. Testing your code during development can expose bugs that fi 阅读全文
posted @ 2022-01-10 10:41 菜鸟吊思 阅读(87) 评论(0) 推荐(0)
摘要:In the last changes you'll make to your module's code, you'll add support for getting greetings for multiple people in one request. In other words, yo 阅读全文
posted @ 2022-01-09 17:29 菜鸟吊思 阅读(56) 评论(0) 推荐(0)
摘要:In this section, you'll change your code so that instead of returning a single greeting every time, it returns one of several predefined greeting mess 阅读全文
posted @ 2022-01-09 17:28 菜鸟吊思 阅读(59) 评论(0) 推荐(0)
摘要:Handling errors is an essential feature of solid code. In this section, you'll add a bit of code to return an error from the greetings module, then ha 阅读全文
posted @ 2022-01-09 16:48 菜鸟吊思 阅读(282) 评论(0) 推荐(0)
摘要:In the previous section, you created a greetings module. In this section, you'll write code to make calls to the Hello function in the module you just 阅读全文
posted @ 2022-01-08 17:32 菜鸟吊思 阅读(235) 评论(0) 推荐(0)
摘要:Table of Contents 目录 Prerequisites 前提条件Start a module that others can use 开始一个其他人可使用的模块 This is the first part of a tutorial that introduces a few fun 阅读全文
posted @ 2022-01-08 16:46 菜鸟吊思 阅读(302) 评论(0) 推荐(0)
摘要:Table of Contents 目录 Prerequisites 前提条件 Install Go 安装Go Write some code 编写一些代码 Call code in an external package 调用外部包的代码 Write more code 编写更多代码 In thi 阅读全文
posted @ 2022-01-07 16:58 菜鸟吊思 阅读(729) 评论(0) 推荐(0)
摘要:Download and install Go quickly with the steps described here. 按照这里说明的步骤可以快速地下载和安装Go。 For other content on installing, you might be interested in: 你可能 阅读全文
posted @ 2022-01-07 16:50 菜鸟吊思 阅读(395) 评论(0) 推荐(0)
摘要:Installing Go 安装Go Instructions for downloading and installing Go. Go的下载和安装指南。 Tutorial: Getting started 教程:入门 A brief Hello, World tutorial to get st 阅读全文
posted @ 2022-01-07 16:04 菜鸟吊思 阅读(70) 评论(0) 推荐(0)