{"id":21473622,"url":"https://github.com/lucasepe/mini","last_synced_at":"2025-03-17T07:26:14.667Z","repository":{"id":199417120,"uuid":"702836208","full_name":"lucasepe/mini","owner":"lucasepe","description":"Parse (sort of) INI files like \"flag\" package in Go.","archived":false,"fork":false,"pushed_at":"2023-10-24T15:45:09.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T16:47:34.296Z","etag":null,"topics":["configuration","flag","golang","ini","parser"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucasepe.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,"governance":null}},"created_at":"2023-10-10T05:41:00.000Z","updated_at":"2023-10-10T09:49:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"5650317e-17d6-402f-b7b3-ce4ac5c152a6","html_url":"https://github.com/lucasepe/mini","commit_stats":null,"previous_names":["lucasepe/mini"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fmini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fmini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fmini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasepe%2Fmini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasepe","download_url":"https://codeload.github.com/lucasepe/mini/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243990444,"owners_count":20379797,"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":["configuration","flag","golang","ini","parser"],"created_at":"2024-11-23T10:18:02.685Z","updated_at":"2025-03-17T07:26:14.644Z","avatar_url":"https://github.com/lucasepe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mini\n\nParse (sort of) INI files like \"flag\" package in Go.\n\n## Example\n\n```go\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"strings\"\n\n\t\"github.com/lucasepe/mini\"\n)\n\nfunc ExampleNewConf() {\n\tdata := `\nwidth: 1600\nsubject: Computers,Education,Programming\n\n[background]\nart: shapes\n\n[title]\ntext: Awesome Book!\ncolor: #000000\nfont-size: 160\noffset: 0.3\n`\n\tconf := mini.NewConf()\n\n\twidth := conf.Int(\"\", \"width\", 1000)\n\theight := conf.Int(\"\", \"height\", 1000)\n\tsubject := conf.StringSlice(\"\", \"subject\", []string{})\n\twatermark := conf.String(\"\", \"watermark\", \"\")\n\n\tart := conf.Enum(\"background\", \"art\", []string{\n\t\t\"color-circles\",\n\t\t\"shapes\",\n\t\t\"circles-grid\",\n\t\t\"pixel-hole\",\n\t\t\"dots-wawe\",\n\t\t\"contour-line\",\n\t\t\"dot-line\",\n\t\t\"warp\",\n\t})\n\n\terr := conf.Parse(strings.NewReader(data))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Println(*width)\n\tfmt.Println(*height)\n\tfmt.Println(*subject)\n\tfmt.Println(*watermark)\n\tfmt.Println(*art)\n\n\t// Output:\n\t// 1600\n\t// 1000\n\t// [Computers,Education,Programming]\n\t//\n\t// shapes\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasepe%2Fmini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasepe%2Fmini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasepe%2Fmini/lists"}