GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 2733284198/training: Learning Golang one day

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

268 Commits
268 Commits

Folders and files

NameName
Last commit message
Last commit date
example01-hello-world
example01-hello-world
 
 
example02-golang-package
example02-golang-package
 
 
example03-if-switch-const
example03-if-switch-const
 
 
example04-constructor-and-struct
example04-constructor-and-struct
 
 
example05-interface
example05-interface
 
 
example06-go-concurrency
example06-go-concurrency
 
 
example07-errors-handler
example07-errors-handler
 
 
example08-type-assertions
example08-type-assertions
 
 
example09-command-line-tool
example09-command-line-tool
 
 
example10-simple-http-server
example10-simple-http-server
 
 
example11-cross-build
example11-cross-build
 
 
example12-build-with-docker
example12-build-with-docker
 
 
example13-share-golang-package-to-c
example13-share-golang-package-to-c
 
 
example14-go-func
example14-go-func
 
 
example15-pass-slice-as-function-args
example15-pass-slice-as-function-args
 
 
example16-init-func
example16-init-func
 
 
example17-json
example17-json
 
 
example18-write-testing-and-doc
example18-write-testing-and-doc
 
 
example19-deploy-with-kubernetes
example19-deploy-with-kubernetes
 
 
example20-write-benchmark
example20-write-benchmark
 
 
example21-simple-golang-https-tls
example21-simple-golang-https-tls
 
 
example22-go-module-in-go.11
example22-go-module-in-go.11
 
 
example23-deploy-go-application-with-up
example23-deploy-go-application-with-up
 
 
example24-debug-go-code-using-vs-code
example24-debug-go-code-using-vs-code
 
 
example25-traefik-golang-app-lets-encrypt
example25-traefik-golang-app-lets-encrypt
 
 
example26-go-trace
example26-go-trace
 
 
example27-how-to-load-env
example27-how-to-load-env
 
 
example28-webserver-with-gracefull-shutdown
example28-webserver-with-gracefull-shutdown
 
 
example29-handle-multiple-channel
example29-handle-multiple-channel
 
 
example30-context-timeout
example30-context-timeout
 
 
example31-job-queue
example31-job-queue
 
 
example32-what-is-select
example32-what-is-select
 
 
example33-share-memory-by-communicating
example33-share-memory-by-communicating
 
 
example34-graceful-shutdown-with-worker
example34-graceful-shutdown-with-worker
 
 
example35-goroutine-with-context
example35-goroutine-with-context
 
 
example36-performance
example36-performance
 
 
example37-three-to-handle-goroutine
example37-three-to-handle-goroutine
 
 
example38-concurrency-is-still-not-easy
example38-concurrency-is-still-not-easy
 
 
example39-select-random-channel
example39-select-random-channel
 
 
example40-embedding-files
example40-embedding-files
 
 
.drone.yml
.drone.yml
 
 
.gitignore
.gitignore
 
 
.revive.toml
.revive.toml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 

Repository files navigation

Golang Training

Learning basic Golang in one day

Example code

  • example01: Show hello world. Try to use golint and gofmt tool.
  • example02: Let's write a library and use it from the hello program.
  • example03: How to use if, switch and const in Go.
  • example04: How to initializing constructor in Go.
  • example05: Create interface for multiple struct.
  • example06: How to use Goroutines in Go, share by communicating.
  • example07: Errors handler in Go.
  • example08: A type assertion provides access to an interface value.
  • example09: Write command line tool in Go.
  • example10: Simple http server and show example using gin framework.
  • example11: Learn go build constraints.
  • example12: Building minimal docker containers for go application.
  • example13: Sharing Golang packages to C and Go.
  • example14: How to use func in go?
  • example15: How to pass slice as function arguments?
  • example16: What is init function in Go?
  • example17: How to handle json in Go?
  • example18: How to write testingin Go?
  • example19: Deploy golang app using drone + kubernetes.
  • example20: write simple benchmark.
  • exmaple21: Simple https-tls server example using mkcert.
  • exmaple22: How to use go module in go version 1.11.
  • example23: Deploy go application useing apex/up tool.
  • example24: Debug golang code in vscode using dlv.
  • example25: Running golang app using traefik & Let's Encrypt & Docker.
  • example27: How to loads environment variables from .env.
  • example28: Go webserver with gracefull shutdown.
  • example29: How to handle multiple Go channel?
  • example30: Simplest Way to Handle Timeouts?
  • example31: How to implements a simple job queue? Youtube
  • example32: four tips with select in golang.
  • example33: share memory by communicating.
  • example34: graceful shutdown with multiple workers.
  • example35: introduction to context package.
  • example36: performance result with differnet concat string method.
  • example38: concurrency is still not easy. English Blog, Chinese Blog
  • example39: select random channel value?
  • example40: go 1.16 support Embedding Files, Chinese Blog

About

Learning Golang one day

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.