1. 8
    Initializing a project using Go modules
    59s

Initializing a project using Go modules

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
~ 5 years ago

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

Joe
~ 5 years ago

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

Chris Biscardiinstructor
~ 5 years 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
~ 5 years ago

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

Fantastic, thanks Chris.