{"id":18030828,"url":"https://github.com/atc0005/help-requests","last_synced_at":"2025-04-04T21:23:00.902Z","repository":{"id":52978851,"uuid":"356868026","full_name":"atc0005/help-requests","owner":"atc0005","description":"Repo used to showcase content for help requests and bug reports","archived":false,"fork":false,"pushed_at":"2021-04-11T13:54:20.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-30T05:47:59.108Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atc0005.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":null,"support":null}},"created_at":"2021-04-11T12:57:42.000Z","updated_at":"2024-04-30T05:47:59.109Z","dependencies_parsed_at":"2022-09-08T00:50:32.375Z","dependency_job_id":null,"html_url":"https://github.com/atc0005/help-requests","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/atc0005%2Fhelp-requests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atc0005%2Fhelp-requests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atc0005%2Fhelp-requests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atc0005%2Fhelp-requests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atc0005","download_url":"https://codeload.github.com/atc0005/help-requests/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247250062,"owners_count":20908295,"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-30T09:15:17.790Z","updated_at":"2025-04-04T21:23:00.878Z","avatar_url":"https://github.com/atc0005.png","language":"Go","readme":"\u003c!-- omit in toc --\u003e\n# help-requests\n\nRepo used to showcase content for help requests and bug reports\n\n\u003c!-- omit in toc --\u003e\n## Table of contents\n\n- [Go](#go)\n  - [Struct field alignment](#struct-field-alignment)\n\n## Go\n\n### Struct field alignment\n\nThis example [here](go/struct-alignment/main.go) is intended to show how\ncurrent versions of Go (1.15.11, 1.16.3) report `fieldalignment` linting\nerrors for structs which appear (perhaps due to my ignorance) to already be\naligned properly.\n\nStructs:\n\n```golang\n  type emailConfigAscending struct {\n    timeout                time.Duration      // 8 bytes\n    notificationRateLimit  time.Duration      // 8 bytes\n    template               *template.Template // 8 bytes\n    serverPort             int                // 8 bytes\n    notificationRetries    int                // 8 bytes\n    notificationRetryDelay int                // 8 bytes\n    server                 string             // 16 bytes\n    senderAddress          string             // 16 bytes\n    clientIdentity         string             // 16 bytes\n    recipientAddresses     []string           // 24 bytes\n  }\n\n  type emailConfigDescending struct {\n    recipientAddresses     []string           // 24 bytes\n    server                 string             // 16 bytes\n    senderAddress          string             // 16 bytes\n    clientIdentity         string             // 16 bytes\n    timeout                time.Duration      // 8 bytes\n    notificationRateLimit  time.Duration      // 8 bytes\n    template               *template.Template // 8 bytes\n    serverPort             int                // 8 bytes\n    notificationRetries    int                // 8 bytes\n    notificationRetryDelay int                // 8 bytes\n  }\n```\n\nOutput:\n\n```console\nvar \"eCfgAscending.timeout\" of type time.Duration has size 8 with Asignof 8 and Offsetof 0\nvar \"eCfgAscending.notificationRateLimit\" of type time.Duration has size 8 with Asignof 8 and Offsetof 8\nvar \"eCfgAscending.template\" of type *template.Template has size 8 with Asignof 8 and Offsetof 16\nvar \"eCfgAscending.serverPort\" of type int has size 8 with Asignof 8 and Offsetof 24\nvar \"eCfgAscending.notificationRetries\" of type int has size 8 with Asignof 8 and Offsetof 32\nvar \"eCfgAscending.notificationRetryDelay\" of type int has size 8 with Asignof 8 and Offsetof 40\nvar \"eCfgAscending.server\" of type string has size 16 with Asignof 8 and Offsetof 48\nvar \"eCfgAscending.senderAddress\" of type string has size 16 with Asignof 8 and Offsetof 64\nvar \"eCfgAscending.clientIdentity\" of type string has size 16 with Asignof 8 and Offsetof 80\nvar \"eCfgAscending.recipientAddresses\" of type []string has size 24 with Asignof 8 and Offsetof 96\nvar \"eCfgAscending\" of type main.emailConfigAscending has size 120 with Asignof 8\n\n\nvar \"eCfgDescending.recipientAddresses\" of type []string has size 24 with Asignof 8 and Offsetof 0\nvar \"eCfgDescending.server\" of type string has size 16 with Asignof 8 and Offsetof 24\nvar \"eCfgDescending.senderAddress\" of type string has size 16 with Asignof 8 and Offsetof 40\nvar \"eCfgDescending.clientIdentity\" of type string has size 16 with Asignof 8 and Offsetof 56\nvar \"eCfgDescending.timeout\" of type time.Duration has size 8 with Asignof 8 and Offsetof 72\nvar \"eCfgDescending.notificationRateLimit\" of type time.Duration has size 8 with Asignof 8 and Offsetof 80\nvar \"eCfgDescending.template\" of type *template.Template has size 8 with Asignof 8 and Offsetof 88\nvar \"eCfgDescending.serverPort\" of type int has size 8 with Asignof 8 and Offsetof 96\nvar \"eCfgDescending.notificationRetries\" of type int has size 8 with Asignof 8 and Offsetof 104\nvar \"eCfgDescending.notificationRetryDelay\" of type int has size 8 with Asignof 8 and Offsetof 112\nvar \"eCfgDescending\" of type main.emailConfigDescending has size 120 with Asignof 8\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatc0005%2Fhelp-requests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatc0005%2Fhelp-requests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatc0005%2Fhelp-requests/lists"}