{"id":18068975,"url":"https://github.com/away0x/flash","last_synced_at":"2025-07-14T15:08:13.851Z","repository":{"id":98810944,"uuid":"193833911","full_name":"Away0x/flash","owner":"Away0x","description":"Easy flash notifications","archived":false,"fork":false,"pushed_at":"2019-06-26T06:06:11.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-23T00:46:39.220Z","etag":null,"topics":["flash","go","http"],"latest_commit_sha":null,"homepage":null,"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/Away0x.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":"2019-06-26T05:13:34.000Z","updated_at":"2019-06-26T06:11:11.000Z","dependencies_parsed_at":"2023-03-13T15:54:31.545Z","dependency_job_id":null,"html_url":"https://github.com/Away0x/flash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Away0x/flash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Away0x%2Fflash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Away0x%2Fflash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Away0x%2Fflash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Away0x%2Fflash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Away0x","download_url":"https://codeload.github.com/Away0x/flash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Away0x%2Fflash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265311871,"owners_count":23745161,"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":["flash","go","http"],"created_at":"2024-10-31T08:08:25.985Z","updated_at":"2025-07-14T15:08:13.815Z","avatar_url":"https://github.com/Away0x.png","language":"Go","readme":"# Flash\nEasy flash notifications\n\n\u003e go get -u github.com/Away0x/flash\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\n\t\"github.com/Away0x/flash\"\n)\n\nfunc handler(w http.ResponseWriter, r *http.Request) {\n\tif r.Method == http.MethodPost {\n\t\tflash.NewFlash(\"flash\", r).\n\t\t\tSet(map[string][]string{\n\t\t\t\t\"error\": {\"flash data\"},\n\t\t\t}).\n\t\t\tSave(w)\n\n\t\tw.Header().Set(\"Location\", \"/\")\n\t\tw.WriteHeader(http.StatusFound)\n\t} else {\n\t\tval := \"\"\n\t\tdata := flash.NewFlash(\"flash\", r).Read(w)\n\t\tif data[\"error\"] != nil \u0026\u0026 data[\"error\"][0] != \"\" {\n\t\t\tval = data[\"error\"][0]\n\t\t}\n\n\t\tw.Header().Set(\"Content-Type\", \"text/html; charset=utf-8\")\n\t\tfmt.Fprintf(w, `\n\t\t\t\u003cform method=POST action=/\u003e\n\t\t\t\t\u003cbutton\u003eSubmit\u003c/button\u003e\n\t\t\t\t\u003cbutton type=button\u003e\u003ca href=/\u003eRefresh\u003c/a\u003e\u003c/button\u003e\n\t\t\t\u003c/form\u003e\n\t\t`+\"\u003chr\u003e\u003cp\u003e\"+val+\"\u003c/p\u003e\")\n\t}\n\n}\n\nfunc main() {\n\thttp.HandleFunc(\"/\", handler)\n\thttp.ListenAndServe(\":8000\", nil)\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faway0x%2Fflash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faway0x%2Fflash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faway0x%2Fflash/lists"}