课程: Practice It: Go REST API Server

今天就学习课程吧!

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

Try it: Move functions to a new module

Try it: Move functions to a new module - Go教程

课程: Practice It: Go REST API Server

Try it: Move functions to a new module

(keys clicking) - [Instructor] Okay, now that you've seen me create a library module and an application module, it's your turn to try it. Create a library module and move the code from main.go from earlier, and then create the application module to use that new library module. All the naming is up to you. To test that you did it correctly, in one terminal, start your application and then call the API from another terminal. Join me in the next video to see how I do this. Good luck.

内容