my-golang-journey

command module
v0.0.0-...-7e36ea5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 4 Imported by: 0

README

1. Install go

# Manjaro linux
sudo pacman -Syu go
# mac
brew install go

2. What the heck is go.mod?

  • go.mod in Go:
    • Serves as a module file to manage dependencies.
    • Tracks the external modules your project depends on.
    • Specifies the name of your module and the modules it relies on.
  • package.json in Node.js:
    • Manages project dependencies for Node.js projects.
    • Lists the packages/modules your project depends on.
    • Specifies metadata about your project.
  • requirements.txt in Python:
    • Lists the Python packages required for a project.
    • Specifies the versions of the packages needed.
go mod init github.com/kasir-barati/my-golang-journey

3. Execute it

go run .

Wanna use new module or 3rd party package?

Use it and then just do a go mod tidy 😁

Should I commit my 'go.sum' file as well as my 'go.mod' file?

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL