Skip to content

Practice materials for "Go: Getting Started" course

License

Notifications You must be signed in to change notification settings

h36yang/go-demo

Repository files navigation

go-demo

Practice materials for Go: Getting Started course

Language Characteristics

  • Fast Compilation
  • Fully Compiled
  • Strongly Typed
  • Concurrent by Default
  • Garbage Collected
  • Simplicity as a Core Value

What Go is good at?

  • Web Services
  • Web Applications
  • Task Automation
  • GUI / Thick Client
  • Machine Learning

Primitive Data Types

  • Variables
  • Pointers
  • Constants

Collection Types

  • Arrays
  • Slices
  • Maps
  • Structs

For Loop Types

  • Loop till condition
  • Loop till condition with post clause
  • Infinite loops
  • Loop over collections

Branching

  • Panics
  • If statements
  • Switches

Sample Web Service Project Structure

module "demo/webservice"
    package "models"
        "user.go":  User Model
    package "controllers"
        "front.go": Front Controller that routes all HTTP requests to Back Controllers
        "user.go":  User Controller
    "main.go": Program entry point that starts up the web server

Best Practices

About

Practice materials for "Go: Getting Started" course

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages