{"id":15067765,"url":"https://github.com/zkoppert/go-exercises","last_synced_at":"2026-01-03T05:00:36.779Z","repository":{"id":56348830,"uuid":"311865268","full_name":"zkoppert/go-exercises","owner":"zkoppert","description":"random go exercises to learn golang","archived":false,"fork":false,"pushed_at":"2020-11-12T23:49:52.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-02T06:02:21.352Z","etag":null,"topics":["golang","golang-examples"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zkoppert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null}},"created_at":"2020-11-11T04:45:34.000Z","updated_at":"2020-11-12T23:49:54.000Z","dependencies_parsed_at":"2022-08-15T17:01:11.315Z","dependency_job_id":null,"html_url":"https://github.com/zkoppert/go-exercises","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/zkoppert%2Fgo-exercises","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkoppert%2Fgo-exercises/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkoppert%2Fgo-exercises/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkoppert%2Fgo-exercises/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zkoppert","download_url":"https://codeload.github.com/zkoppert/go-exercises/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830912,"owners_count":20354850,"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":["golang","golang-examples"],"created_at":"2024-09-25T01:27:15.356Z","updated_at":"2026-01-03T05:00:36.643Z","avatar_url":"https://github.com/zkoppert.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-exercises\n\n![CodeQL](https://github.com/zkoppert/go-exercises/workflows/CodeQL/badge.svg) ![Go build](https://github.com/zkoppert/go-exercises/workflows/Go%20build/badge.svg) ![Lint Code Base](https://github.com/zkoppert/go-exercises/workflows/Lint%20Code%20Base/badge.svg)\n\n## fizzbuzz\n**Problem**\n\nPrint the numbers from 1 to 20. However\n- if the number is divisible by 3 (say, 9), print the word \"fizz\" instead of the number.\n- if the number is divisible by 5 (say, 10), print the word \"buzz\" instead of the number.\n- if the number is divisible by both 3 and 5 (say, 15) print \"fizz buzz\" instead of the number.\n\n[Solution](fizzbuzz/fizzbuzz.go)\n\n## even-ended numbers\n**Problem**\n\nAn even-ended number is a number with the same first and last digits (ex: 1, 11, 121)\nHow many even ended numbers result from multiplying two four-digit numbers?\n\n[Solution](even-end/even-end.go)\n\n## Maximal value\n**Problem**\n\nGiven an unordered slice of values called nums, print the maximal value in the slice.\n\n[Solution](max-val/max-val.go)\n\n## Word Count\n**Problem**\n\nGiven some text, print out how many times each word appears in the text. This should count while being case insensitive.\n\n[Solution](word-count/word-count.go)\n\n## Get URL content type\n**Problem**\n\nWrite a function that gets a URL and returns the value of Content-Type response HTTP HEADER or error if a GET request cannot be performed.\n\n[Solution](get-url-content-type/get-url-content-type.go)\n\n## Circle\n**Problem**\n\nDefine a circle struct which has two fields, centerof type point and length of type int. Also create a function the creates circle and returns a pointer to a new circle. A move method should also be created so that points can be moved, and an area method to calculate the area.\n\n[Solution](circle/circle.go)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkoppert%2Fgo-exercises","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzkoppert%2Fgo-exercises","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkoppert%2Fgo-exercises/lists"}