{"id":26675594,"url":"https://github.com/linkdata/inifile","last_synced_at":"2025-03-26T03:18:50.392Z","repository":{"id":81889082,"uuid":"605889922","full_name":"linkdata/inifile","owner":"linkdata","description":"Simple INI file reader","archived":false,"fork":false,"pushed_at":"2024-05-14T06:09:50.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-12T09:14:13.122Z","etag":null,"topics":["ini","inifile"],"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/linkdata.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-24T05:43:23.000Z","updated_at":"2024-05-14T06:08:05.000Z","dependencies_parsed_at":"2024-05-14T07:27:43.262Z","dependency_job_id":"f7d581e9-91d9-475d-9b34-260834050072","html_url":"https://github.com/linkdata/inifile","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdata%2Finifile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdata%2Finifile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdata%2Finifile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdata%2Finifile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linkdata","download_url":"https://codeload.github.com/linkdata/inifile/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245579675,"owners_count":20638679,"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":["ini","inifile"],"created_at":"2025-03-26T03:18:49.880Z","updated_at":"2025-03-26T03:18:50.381Z","avatar_url":"https://github.com/linkdata.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build](https://github.com/linkdata/inifile/actions/workflows/go.yml/badge.svg)](https://github.com/linkdata/inifile/actions/workflows/go.yml)\n[![coverage](https://coveralls.io/repos/github/linkdata/inifile/badge.svg?branch=main)](https://coveralls.io/github/linkdata/inifile?branch=main)\n[![goreport](https://goreportcard.com/badge/github.com/linkdata/inifile)](https://goreportcard.com/report/github.com/linkdata/inifile)\n[![Docs](https://godoc.org/github.com/linkdata/inifile?status.svg)](https://godoc.org/github.com/linkdata/inifile)\n\n# inifile\n\nSimple INI file reader.\n\nSection and key names are case-insensitive and ignore leading and trailing whitespace.\n\nSupports line comments, trailing comments and quoted values.\n\nKeys appearing more than once will either replace previous values or append to them with a separator.\n\n```go\nfunc ExampleParse() {\n\tconst initext = `\n# comments start with a hash\n; or a semicolon\n\n# global keys are in the unnamed (empty string) section\nUsername = \" user name \" # values can be quoted preserve whitespace or embed quotes\n\n# section names are case insensitive and ignores leading and trailing whitespace\n[ HTTP ] \n port = 8080 # keys and values are stripped of leading and trailing whitespace\nport=8081 # keys appearing more than once either append or replace values\n`\n\n\tinif, err := inifile.Parse(strings.NewReader(initext), ',')\n\tif err != nil {\n\t\tfmt.Fprint(os.Stderr, err)\n\t}\n\tusername, _ := inif.Get(\"\", \"username\")\n\tports, _ := inif.Get(\"http\", \"port\")\n\n\tfmt.Printf(\"%q\\n%q\\n\", username, ports)\n\t// Output:\n\t// \" user name \"\n\t// \"8080,8081\"\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkdata%2Finifile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkdata%2Finifile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkdata%2Finifile/lists"}