课程: Practice It: Go REST API Server

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Try it: Create a struct and receiver methods

Try it: Create a struct and receiver methods - Go教程

课程: Practice It: Go REST API Server

Try it: Create a struct and receiver methods

(computer keys clicking) - [Instructor] For this challenge, I want you to update the backend library, or whatever you named it, to use a struct with fields. Include a database field that will hold the opened connection to the database. Use the SQLLite3 library. And as a tip, think about when to use pointer versus value receiver methods. Be sure to try out your changes, and in the next video I will show you my solution. Good luck.

内容