{"id":16939568,"url":"https://github.com/a8m/gotips-talk-2018","last_synced_at":"2025-04-11T19:21:01.048Z","repository":{"id":69602354,"uuid":"116377816","full_name":"a8m/gotips-talk-2018","owner":"a8m","description":"\"Did you know that...\" talk. Go-Israel meetup, Jan 2018","archived":false,"fork":false,"pushed_at":"2018-01-05T15:49:20.000Z","size":10,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T15:13:36.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a8m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-05T11:25:09.000Z","updated_at":"2019-09-04T05:38:08.000Z","dependencies_parsed_at":"2023-09-16T08:46:19.273Z","dependency_job_id":null,"html_url":"https://github.com/a8m/gotips-talk-2018","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fgotips-talk-2018","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fgotips-talk-2018/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fgotips-talk-2018/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a8m%2Fgotips-talk-2018/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a8m","download_url":"https://codeload.github.com/a8m/gotips-talk-2018/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248465348,"owners_count":21108244,"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":[],"created_at":"2024-10-13T21:05:01.309Z","updated_at":"2025-04-11T19:21:01.042Z","avatar_url":"https://github.com/a8m.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## \"Did you know that...\" talk.\n\n0. [Introduction - \"feel the audience\"](https://github.com/a8m/gotips-talk-2018/blob/master/intro/1.md).\n\n1. Make the nil receiver useful - [Example](https://github.com/a8m/gotips-talk-2018/tree/master/code/1).\n\n2. `copy` - The most \"unpopular\" built-in function, after `complex`/`imag`/`real` - [Examples](https://github.com/a8m/gotips-talk-2018/tree/master/code/2).\n\n3. [Anonymous structs](https://github.com/a8m/gotips-talk-2018/blob/master/code/3/3.md), [anonymous interfaces](https://github.com/a8m/gotips-talk-2018/blob/master/code/3/interface.go), and [interface validation](https://github.com/a8m/gotips-talk-2018/blob/master/code/3/impl.go).\n\n4. Typed function that implements an interface (show only if more than 5 people in the\n   audience don't know that) - [Example](https://github.com/a8m/gotips-talk-2018/blob/master/code/4/4.go).\n\n5. Control parallelism. limit the number of goroutines - [Example](https://github.com/a8m/gotips-talk-2018/tree/master/code/5).\n\n6. Relative imports - [Example](https://github.com/a8m/gotips-talk-2018/tree/master/code/6).\n\n7. Shadowing. run vet -shadow - [Example](https://github.com/a8m/gotips-talk-2018/blob/master/code/7/7.go).\n\n8. close channel to notify many. but be careful from the gotcha\n   (closed channel always true in select) - [Example](https://github.com/a8m/gotips-talk-2018/blob/master/code/8/8.go).\n\n9. Panic-Recover flow control example - [Example](https://github.com/a8m/gotips-talk-2018/blob/master/code/9/9.go).\n\n10. Embed interface. sort.Reverse example - [Example](https://github.com/a8m/gotips-talk-2018/blob/master/code/10/10.go).\n\n11. Few words about 1.10 release.  \n    - strings.Builder - why, and what it solves.\n    - File.SetDeadline\n    - json.IgnoreUnknownFields\n    - And more..\n\nSuggestions for next meetups:\n- Some tips to organize your table driven tests.\n- Go schedular more cooperative than preemptive.\n- Explain the `reflect` package.\n- Compiler optimization.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa8m%2Fgotips-talk-2018","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa8m%2Fgotips-talk-2018","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa8m%2Fgotips-talk-2018/lists"}