{"id":19118515,"url":"https://github.com/sowinskibraeden/gfbmb","last_synced_at":"2026-05-17T02:02:29.589Z","repository":{"id":57691365,"uuid":"480581038","full_name":"SowinskiBraeden/gfbmb","owner":"SowinskiBraeden","description":"GoFiber BootStrap Message Box, an easy solution to insert BootStrap message boxes into your html page via GoFiber.","archived":false,"fork":false,"pushed_at":"2022-04-11T23:28:33.000Z","size":32,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-03T07:34:05.798Z","etag":null,"topics":["bootstrap","gofiber","html-template"],"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/SowinskiBraeden.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}},"created_at":"2022-04-11T23:09:42.000Z","updated_at":"2024-10-05T06:22:02.000Z","dependencies_parsed_at":"2022-09-18T23:00:29.571Z","dependency_job_id":null,"html_url":"https://github.com/SowinskiBraeden/gfbmb","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/SowinskiBraeden%2Fgfbmb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SowinskiBraeden%2Fgfbmb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SowinskiBraeden%2Fgfbmb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SowinskiBraeden%2Fgfbmb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SowinskiBraeden","download_url":"https://codeload.github.com/SowinskiBraeden/gfbmb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240171746,"owners_count":19759415,"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":["bootstrap","gofiber","html-template"],"created_at":"2024-11-09T05:06:41.589Z","updated_at":"2026-05-17T02:02:29.473Z","avatar_url":"https://github.com/SowinskiBraeden.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## GoFiber BootStrap Message Box (gfbmb)\n\nGoFiber BootStrap Message Box, and easy solution to insert BootStrap message boxes into your html page via GoFiber.\n\n### Getting Started\n\n1. Get the module in your terminal.\n```\ngo get github.com/SowinskiBraeden/gfbmb\n```\n\n2. Ensure your GoFiber engine has `unescape` defined.\n```GoLang\nengine.AddFunc(\n  \"unescape\", func(s string) template.HTML {\n    return template.HTML(s)\n  },\n)\n```\n\n3. Ensure your html page has the required modules.\n```html\n\u003clink rel=\"stylesheet\" href=\"https://bootswatch.com/4/journal/bootstrap.min.css\"/\u003e\n\u003cscript src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js\"\u003e\u003c/script\u003e\n```\n\n4. Place where you want your Message box to go in your html page.\n```html\n{{ unescape msgBox }}\n```\n\n5. Render your html page with the empty message box.\n```GoLang\napp.Get(\"/\", func(c *fiber.Ctx) error {\n  return c.Render(\"index\", fiber.Map{\n    \"msgBox\": messageBox.EmptyMessageBox(),\n  })\n})\n```\n\n6. When rendering a page with a message, use one of the following...\n```GoLang\nnewMsgBox, err := messageBox.NewMessageBox(message, msgType)\n// msgType is optional, providing none will default to 'success'\n// msgType can be 'success', 'warning' or 'danger'\nif err != nil {\n  return c.Render(\"index\", fiber.Map{\n    \"msgBox\": messageBox.NewDangerBox(err.Error()),\n  })\n}\n```\nor one of these...\n```GoLang\nnewMsgBox := messageBox.NewSuccessBox(message)\nnewMsgBox := messageBox.NewWarningBox(message)\nnewMsgBox := messageBox.NewErrorBox(message)\n```\n\n7. Render your html page with your new Message Box.\n```GoLang\nreturn c.Render(\"index\", fiber.Map{\n  \"msgBox\": newMsgBox,\n})\n```\n\nYou can see the full example using the `main.go` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsowinskibraeden%2Fgfbmb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsowinskibraeden%2Fgfbmb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsowinskibraeden%2Fgfbmb/lists"}