{"id":37214900,"url":"https://github.com/fractalpal/gostand","last_synced_at":"2026-01-15T00:51:55.955Z","repository":{"id":57499960,"uuid":"112868339","full_name":"fractalpal/gostand","owner":"fractalpal","description":"Commonly used constants names for Go","archived":false,"fork":false,"pushed_at":"2018-03-28T09:36:52.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-14T07:40:10.057Z","etag":null,"topics":["constants","go","golang"],"latest_commit_sha":null,"homepage":"","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/fractalpal.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":"2017-12-02T18:56:24.000Z","updated_at":"2018-03-28T09:35:49.000Z","dependencies_parsed_at":"2022-08-28T20:00:48.900Z","dependency_job_id":null,"html_url":"https://github.com/fractalpal/gostand","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/fractalpal/gostand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fractalpal%2Fgostand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fractalpal%2Fgostand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fractalpal%2Fgostand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fractalpal%2Fgostand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fractalpal","download_url":"https://codeload.github.com/fractalpal/gostand/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fractalpal%2Fgostand/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28440580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:34:46.850Z","status":"ssl_error","status_checked_at":"2026-01-15T00:34:46.551Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["constants","go","golang"],"created_at":"2026-01-15T00:51:55.356Z","updated_at":"2026-01-15T00:51:55.945Z","avatar_url":"https://github.com/fractalpal.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gostand\n\nCommonly used constants names for Go \n\n### Motivation\nThis package aims lacking of commonly used constants for Go from various contexts like net, http etc. No more \"application/json\", \"Content-Length\" etc. manual declarations.\n\n### Idea\n\nThe **idea** is to provide widely used constants names for common packages as nicely companions. \n\nThis package follow the **convention** that every package name in **gostand** begins with underscore(\"**_**\") to avoid collisions and provide smooth companion for other packages. \n\nFor instance **_net**, **_http**, **_os** etc. This concept will provide possibility to add common constant to existing packages like net, net/http, os and others. \n\n### Instalation\n\n**Get all packages:**\n\n````\ngo get -u github.com/fractalpal/gostand\n````\nusing [dep](https://github.com/golang/dep):\n```\ndep ensure -add github.com/fractalpal/gostand\n```\n\n\n### Example\n```\nimport(\n    \"github.com/fractalpal/gostand/net/\"\n    \"github.com/fractalpal/gostand/net/http\"\n)\n\n```\n\n\n\n```\ncontentType := _http.HeaderContentType\nmediaType := _net.MediaTypeApplicationJSON\n```\n\n### Source code sneak peek\n```\n...\nHeaderAccept = \"Accept\"\nHeaderAcceptCharset = \"Accept-Charset\"\nHeaderAcceptEncoding = \"Accept-Encoding\"\nHeaderAcceptLanguage = \"Accept-Language\"\nHeaderAcceptRanges = \"Accept-Ranges\"\nHeaderAge = \"Age\"\nHeaderAllow = \"Allow\"\nHeaderAuthorization = \"Authorization\"\nHeaderCacheControl = \"Cache-Control\"\nHeaderConnection = \"Connection\"\nHeaderContentEncoding = \"Content-Encoding\"\nHeaderContentLanguage = \"Content-Language\"\nHeaderContentLength = \"Content-Length\"\nHeaderContentLocation = \"Content-Location\"\nHeaderContentMD5 = \"Content-MD5\"\n\n...\nMediaTypeApplicationJSONAPI = \"application/vnd.api+json\"\nMediaTypeApplicationAtomXML = \"application/atom+xml\"\nMediaTypeApplicationFormURLEncoded = \"application/x-www-form-urlencoded\"\nMediaTypeApplicationJSON = \"application/json\"\nMediaTypeApplicationOctecStream = \"application/octet-stream\"\nMediaTypeApplicationSVGXML = \"application/svg+xml\"\nMediaTypeApplicationXHTMLXML = \"application/xhtml+xml\"\nMediaTypeApplicationXML = \"application/xml\"\nMediaTypeWildcard = \"*\"\nMediaTypeMultipartFormData = \"multipart/form-data\"\nMediaTypeTextHTML = \"text/html\"\nMediaTypeTextPlain = \"text/plain\"\nMediaTypeTextXML = \"text/xml\"\nMediaWildcard = \"*/*\"\n```\n\n### Contribution\nIf you like the concept and want to contribute, please feel free to add any commonly used (RFC/KNOWN specification) constants in best appropriate package location and open PR to extend this package even further. Just remember about **underscore** naming convention.\nTo speed up the contribution process, if your addition has a support in any standard out there (like RFC's etc), please add this as comment next to line and to PR.\n\n### License\n[MIT](https://github.com/fractalpal/gostand/blob/master/LICENSE \"License\")","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffractalpal%2Fgostand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffractalpal%2Fgostand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffractalpal%2Fgostand/lists"}