{"id":19378312,"url":"https://github.com/kurehajime/flagstone","last_synced_at":"2026-03-04T19:32:32.025Z","repository":{"id":57511861,"uuid":"239656120","full_name":"kurehajime/flagstone","owner":"kurehajime","description":"flagstone is a Go library to convert flags to web UI.","archived":false,"fork":false,"pushed_at":"2026-02-28T23:03:34.000Z","size":24,"stargazers_count":22,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-01T01:59:30.078Z","etag":null,"topics":["cross-platform","cui","go","golang","golang-library","golang-package","gui","web"],"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/kurehajime.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":"2020-02-11T02:09:05.000Z","updated_at":"2026-02-28T23:03:37.000Z","dependencies_parsed_at":"2022-08-31T06:40:22.404Z","dependency_job_id":null,"html_url":"https://github.com/kurehajime/flagstone","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kurehajime/flagstone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurehajime%2Fflagstone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurehajime%2Fflagstone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurehajime%2Fflagstone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurehajime%2Fflagstone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kurehajime","download_url":"https://codeload.github.com/kurehajime/flagstone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurehajime%2Fflagstone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30090549,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T18:31:08.343Z","status":"ssl_error","status_checked_at":"2026-03-04T18:31:07.708Z","response_time":59,"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":["cross-platform","cui","go","golang","golang-library","golang-package","gui","web"],"created_at":"2024-11-10T09:05:34.278Z","updated_at":"2026-03-04T19:32:31.996Z","avatar_url":"https://github.com/kurehajime.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flagstone\n\nflagstone is a Go library to convert flags to web UI.\n\n![flagstone](https://user-images.githubusercontent.com/4569916/74228957-ce9fab80-4d04-11ea-8eb5-2970496e75c5.png) \n\n## install \n\n```\ngo get github.com/kurehajime/flagstone\n```\n\n## usage\n\n1. Use golang's standard flag package.\n\n\n    ```\n    package main\n\n    import (\n        \"flag\"\n        \"fmt\"\n    )\n\n    var who *string\n\n    func main() {\n        who = flag.String(\"who\", \"world\", \"say hello to ...\")\n        flag.Parse()\n\n        fmt.Println(\"hello \" + *who + \"!\")\n    }\n    ```\n\n1. Import flagstone and add one line.\n\n    ```\n    package main\n\n    import (\n        \"flag\"\n        \"github.com/kurehajime/flagstone\" //★ here ★\n        \"fmt\"\n    )\n\n    var who *string\n\n    func main() {\n        who = flag.String(\"who\", \"world\", \"say hello to ...\")\n        flag.Parse()\n\n        flagstone.Launch(\"helloworld\", \"flagstone sample\") //★ here ★\n\n        fmt.Println(\"hello \" + *who + \"!\")\n    }\n\n    ```\n\n1. Finish!\n\n    When you run the program, the browser starts.\n\n    Pressing the \"Run\" button sets the flag and runs the program.\n\n\n    ![screenshot](https://user-images.githubusercontent.com/4569916/74208613-ac3b6d00-4cc7-11ea-9f3c-e686874f2e38.png)\n\n## options\n\n#### SetPort\n\nSpecify the port number.\n\n#### SetSubURL\n\n\nSpecify sub URL.\nIf not specified, it is determined randomly.\n\n\n#### SetSort\n\nSpecify the order of the parameters.\nIf not specified, it will be in ABC order.\n\n#### SetSilent\n\nIf set to true, flagstone will not produce any extra output.\n\n#### SetUseNonFlagArgs\n\nIf true is set, non-flag arguments are added.\nnon-flag arguments can be obtained by the return value of the Lanch method.\n\n#### SetCSS\n\nSpecify CSS.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurehajime%2Fflagstone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkurehajime%2Fflagstone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurehajime%2Fflagstone/lists"}