1. 8
    Initializing a project using Go modules
    59s

Initializing a project using Go modules

Chris Biscardi
InstructorChris Biscardi

Share this video with your friends

Send Tweet

Golang includes the go mod command to initialize a new project. Sometimes that command fails even though it tries to be smart about where to get the name of your module from so we give an example of how to explicitly set the name of your go modules based project.

mkdir my-go-project
cd my-go-project
go mod init github.com/christopherbiscardi/my-go-project
Erkan Buelbuel
Erkan Buelbuel
~ a year ago

I don't like go :/ If typescript compiled, go would be totally superfluous.

Joe
Joe
~ a year ago

What shell extension are you using to get the nice filename and line numbers on your cat command?

Chris Biscardi
Chris Biscardiinstructor
~ a year ago

What shell extension are you using to get the nice filename and line numbers on your cat command?

It's a tool called bat that replaces cat: https://github.com/sharkdp/bat I have alias cat=bat in my shell profile so whenever I type cat its using bat.

Joe
Joe
~ a year ago

It's a tool called bat that replaces cat: https://github.com/sharkdp/bat

Fantastic, thanks Chris.