{"id":24432248,"url":"https://github.com/bayer-group/go-workshop","last_synced_at":"2025-06-11T10:33:45.321Z","repository":{"id":47468022,"uuid":"246735738","full_name":"Bayer-Group/go-workshop","owner":"Bayer-Group","description":"Structured hands-on workshop for learning Go","archived":false,"fork":false,"pushed_at":"2021-08-30T17:02:52.000Z","size":892,"stargazers_count":8,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-12T13:49:28.127Z","etag":null,"topics":["beat-not-applicable","go","golang","tutorial","workshop"],"latest_commit_sha":null,"homepage":"https://bayer-group.github.io/go-workshop/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bayer-Group.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-12T03:32:35.000Z","updated_at":"2024-06-12T13:25:45.000Z","dependencies_parsed_at":"2022-07-26T16:02:32.118Z","dependency_job_id":null,"html_url":"https://github.com/Bayer-Group/go-workshop","commit_stats":null,"previous_names":["monsantoco/go-workshop"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bayer-Group%2Fgo-workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bayer-Group%2Fgo-workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bayer-Group%2Fgo-workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bayer-Group%2Fgo-workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bayer-Group","download_url":"https://codeload.github.com/Bayer-Group/go-workshop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bayer-Group%2Fgo-workshop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259246634,"owners_count":22828081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beat-not-applicable","go","golang","tutorial","workshop"],"created_at":"2025-01-20T15:36:19.197Z","updated_at":"2025-06-11T10:33:45.291Z","avatar_url":"https://github.com/Bayer-Group.png","language":"Go","readme":"# go-workshop ([https://Bayer-Group.github.io/go-workshop/](https://Bayer-Group.github.io/go-workshop/))\nStructured hands-on workshop for learning Go. \n\n## Workshop Outline\nThe 'Basics' module starts with the components that you will see across most commonly-used languages then delves into 'Intermediate' with the concepts and structures that set Go apart.  The 'Advanced' module builds on those concepts and introduces several new built-in components.\n\nThe intended flow of the workshop is to go through each module's presentation on the [GitHub pages](https://Bayer-Group.github.io/go-workshop/) one part at a time and complete the TODOs in the associated hands-on exercises.  Each part has its own make command to simplify running the code.\n\n### Basics - common language structures, the Go way\n\n* 01fmt - fmt-y Dumpty\n    * main\n    * import\n    * fmt library\n    * types\n    * variables\n    * constants\n    \n* 02conditionals - On one conditional\n    * if/else\n    * switch\n    \n* 03slices - A healthy slice of arrays\n    * arrays\n    * slices\n    * make\n    * append\n    * maps\n    * delete\n\n* 04loops - Stuck in the loop with you\n    * for\n    * range\n    \n* 05functions - Becoming a functioning Gopher\n    * functions\n    * variadic functions\n    \n* 06errors - I am Error\n    * errors\n    * error syntax\n    \n### Intermediate - what sets Go apart\n    \n* 07panics - Don't panic\n    * defer\n    * panic\n    * recover\n    \n* 08pointers - Get to the point\n    * pointers\n    * dereferencing\n    \n* 09structs - Hardwired to self de-struct\n    * structs\n    * methods\n    \n* 10interfaces - Unlike a user interface, these take a bit of explanation\n    * interfaces\n    \n* 11goroutines - Getting into the routine\n    * goroutines\n    \n* 12channels - Now you're thinking with channels\n    * channels\n\n### Advanced - Keep 'em coming\n\n* 13currying - Staying anonymous\n    * anonymous functions\n    * closures\n    * currying\n    * recursion\n\n* 14async - Getting out of sync\n    * buffered channels\n    * select\n    * non-blocking channels\n    * close\n\n* 15packages - Here's your package\n    * packages\n    * scope\n    * imports\n    \n* 16context - Taken out of context\n    * context\n    * strconv\n    \n### Topics not covered (but can be very useful)\n__Disregard the order__\n\n* In-depth Type Conversion and casting (strings, numbers, interfaces, etc)\n* Mutexes\n* SQL\n* Unit Testing\n* HTTP server\n* HTTP client\n* Regex\n* File manipulation\n* Flags and Environment Variables\n* Time\n\n## Mac Setup\nTo install Go for Mac, you have several options:\n \n* manually download the installer from [Go Downloads](https://golang.org/dl/)\n    * typically installs at `/usr/local/go` on Mac\n    \n* do `brew install go`.\n    * typically installs at `/usr/local/Cellar/go`\n\nAs of Go 1.11, Go has built-in dependency management via [Go Modules](https://blog.golang.org/modules2019) so the **GOPATH** is no longer required. You can now place your Go projects anywhere on your file system as long as the project contains a `go.mod` file.\n\n### go mod\n[This tutorial](https://blog.golang.org/using-go-modules) is recommended to get going with Go Modules, but here is a quick way to get started:\n\nWhen spinning up a new Go project or converting an older project (from `dep` for example), you can simply run `go mod init \u003cpath\u003e` and Go will initialize a `go.mod` for your project. A `\u003cpath\u003e` structure should be origin/org/repo (e.g. `github.com/Bayer-Group/go-workshop`). That path allows other projects to find yours on the web and is especially important in cases where your repo is intended to be a module/import for another project. \n\nNow running any Go command (e.g. `go build` or `go test`) from within your project will trigger a go module check that will download and attempt to resolve any dependencies in your project. Dependencies both direct and indirect will be noted in `go.mod` and checksums will be saved in `go.sum`. Both files should be committed to your central repo.\n\nFor previous `dep` projects, once `go.mod` and `go.sum` are created you can safely delete `Gopkg.toml` and `Gopkg.lock` files as well as `vendor` and `.vendor-new` folders from your project. \n\n## MkDocs Site\n### To preview local changes to the site:\n - Install Python and pip (pip3 comes by default on mac.  just create a new link from pip to pip3 `ln -fs /usr/local/bin/pip3 /usr/local/bin/pip`) \n - Install `mkdocs` using: `pip install mkdocs`\n    - if you are getting certificate validation issues try the instructions below\n - Install the material theme using: `pip install mkdocs-material`\n - From the project root run: `make local-docs`\n \n  \n### to deploy github pages\n- NOTE: you must have PIP installed (try `pip` command.  You can install with `brew install python`)\n1. run `make publish`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbayer-group%2Fgo-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbayer-group%2Fgo-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbayer-group%2Fgo-workshop/lists"}