{"id":37156707,"url":"https://github.com/mappu/autoconfig","last_synced_at":"2026-01-14T18:35:55.620Z","repository":{"id":324457681,"uuid":"1096812386","full_name":"mappu/autoconfig","owner":"mappu","description":"Edit any Go struct with a Qt interface","archived":false,"fork":false,"pushed_at":"2025-12-03T06:27:32.000Z","size":81,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-06T07:37:05.506Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mappu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-15T01:52:31.000Z","updated_at":"2025-12-03T06:27:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mappu/autoconfig","commit_stats":null,"previous_names":["mappu/autoconfig"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/mappu/autoconfig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mappu%2Fautoconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mappu%2Fautoconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mappu%2Fautoconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mappu%2Fautoconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mappu","download_url":"https://codeload.github.com/mappu/autoconfig/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mappu%2Fautoconfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28430859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2026-01-14T18:35:54.876Z","updated_at":"2026-01-14T18:35:55.611Z","avatar_url":"https://github.com/mappu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# autoconfig\n\n![](https://img.shields.io/badge/License-MIT-green)\n[![Go Reference](https://pkg.go.dev/badge/github.com/mappu/autoconfig.svg)](https://pkg.go.dev/github.com/mappu/autoconfig)\n\nAutoconfig allows you to edit any Go struct with a Qt interface [based on MIQT](https://github.com/mappu/miqt).\n\n```\ntype Foo struct {                []----------------------[]\n    Name string                  |  Name:  [___________]  |\n}                                |                [Save]  |\n                                 []----------------------[]\n```\n\n## Usage\n\nCreating a dialog:\n\n```golang\n// Passed in struct should be a pointer value\nvar foo MyStruct\nautoconfig.OpenDialog(\u0026foo, nil, \"Dialog title\", func() {\n\t// The value of 'foo' has been updated\n})\n```\n\nEmbedding into an existing layout:\n\n```golang\nvar foo MyStruct\nsaveCallback := autoconfig.MakeConfigArea(\u0026foo, qt6.QFormLayout)\n\n// To save changes from the GUI into the struct, call the saveCallback() function.\n// However, warning that nested fields may be mutated automatically without calling.\n```\n\nOnly public fields are supported. This is a limitation of the standard library `reflect` package.\n\n## Supported types\n\n- All Go primitive types\n\t- string\n\t- bool\n\t- int\n\t\t- including uintptr, uint, and fixed-width versions\n\t- float\n\t- complex\n\t- pointer (optional)\n\t\t- struct tags on the pointer are passed in to the child renderer\n\t- slice\n\t- []byte\n\t\t- supports MIME content detection, multiline text editor, and importing and exporting file content\n\t- fixed-size array\n\t- map\n\t- struct\n\t\t- child structs by value, and embedded structs, are rendered inline\n\t\t- struct tags on the slice are passed in to each child renderer\n\t- empty struct\n- Standard library types\n\t- time.Time\n- Custom types\n\t- AddressPort\n\t- EnumList\n\t- ExistingDirectory\n\t- ExistingFile\n\t- Header\n\t- MultilineString\n\t- Password\n\t- Any custom type that implements the `Renderer` interface\n- Custom layouts\n\t- OneOf\n\t- TabGroup\n\n## Customization\n\nAdd struct tags to individual fields to customize the rendering:\n\n|Tag      |Behaviour\n|---------|------\n|`ylabel` |Override label. If not present, the default label is the struct field's name with underscores replaced by spaces.\n|`yenum`  |For \"EnumList\"; list of dropdown options, separated by double-semicolon (`;;`)\n|`yfilter`|For \"ExistingFile\"; filter to apply in popup dialog\n|`yicon`  |For \"OneOf\" and \"TabGroup\"; icon (either from theme, or with `:/` prefix for resource icon)\n|`yprefix`|For int, uint, float types; text to display as a prefix (e.g. \"at least\")\n|`ysuffix`|For int, uint, float types; text to display as a suffix (e.g. \"%\" or \"bytes\")\n\nImplement these interfaces to customize the rendering:\n\n|Interface       |Behaviour\n|----------------|---------\n|`Resetter`      |May be used with pointer receiver to reset your type to default values, if autoconfig constructed a new version of your type (used by OneOf, pointer, and slice)\n|`Renderer`      |Add a fully custom Qt widget. Use with either value or pointer receiver.\n|`fmt.Stringer`  |May be used to format some types for display\n\n## Changelog\n\n2026-01-04 v0.5.0\n\n- Support map\n- Support fixed-size arrays\n- Support `[]byte` with special handling, including MIME content detection and file import/export\n- Support `complex64` and `complex128`\n- Add `TabGroup`\n- Add `yprefix` and `ysuffix` support for int, uint, and float types\n- Labels: Hide standalone `:` if a blank label was used\n- Labels: Hide duplicate labels if text was already shown in dialog/tab/dropdown\n- Fix label formatting for strings\n- Show `\"\"` as the label formatting for the empty string\n\n2025-12-03 v0.4.1\n\n- Reduce flicker on Windows by enforcing Qt parent relationship during creation\n\n2025-12-03 v0.4.0\n\n- Reduce flicker on Windows by setting Qt UpdatesEnabled false during struct calculation\n- OneOf: support Reset()\n- Labels: Support String() on ExistingFile and ExistingDirectory\n- Labels: Support labels on pointer types, with parenthesis\n- Labels: Support labels on structs using OneOf\n- Labels: Automatically convert CamelCase struct names to separated words\n- Struct tags are now passed through to slice and pointer children (e.g. allowing `yfilter` on `*ExistingFile`)\n- Use accurate type comparison for `time.Time` and `OneOf`, in case of naming conflict in other packages\n\n2025-11-26 v0.3.0\n\n- BREAKING: Rename `InitDefaulter` to `Resetter`, rename `Autoconfiger` to `Renderer`\n- Add `OneOf`\n- Renderer interface now supports being implemented on either value or pointer receiver\n- `AddressPort` now renders a string description when used in a slice\n\n2025-11-17 v0.2.0\n\n- Support arbitrary pointers, slices, int, uintptr, float, `time.Time`\n- Add `Header`\n- Skip over unsupported types (func, interface, `unsafe.Pointer`)\n- Fix cosmetic inconsistency when editing types\n\n2025-11-15 v0.1.0\n\n- Initial public release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmappu%2Fautoconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmappu%2Fautoconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmappu%2Fautoconfig/lists"}