go-tutorials

command module
v0.0.0-...-3740421 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 1 Imported by: 0

README

go-tutorials

Go programming language tutorials go.dev tutorials

package structure

in the order of creation

  1. Getting started
  2. Create a module
  3. Tour of Go
    1. Basics
    2. Flow Control
    3. More Types
    4. Methods
    5. Generics
    6. Concurrency
  4. Getting started with multi-module workspaces
  5. Accessing relational database
  6. Developing a RESTful API with Go and Gin
  7. Getting started with generics
  8. Getting started with fuzzing
  9. Writing Web Applications with Go

Notes

packages

ideally, in a legitimate application 1 project would have 1 go.mod
similar to Java, you would have 1 entry point main.go and import packages to your necessary classes / go files.

Some observations I found :

  • each package does not need a separate go.mod file.
  • each package may contain unique variables and functions.
    • unlike Java where each class is independent, go files are not independent; go packages are independent.
multiple mains

GoLand IDE will not allow multiple package main lines in the project.
However, if you still place it and run the following, each file with main function can run.

go run <path-to-my-file-with-main>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
tour
basics
"Packages"
"Packages"

Jump to

Keyboard shortcuts

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