{"id":66608,"library":"ompluscator-dynamic-struct","title":"dynamic-struct","description":"Package dynamic-struct provides a way to create Go structs dynamically at runtime.","status":"active","version":"1.4.0","language":"go","source_language":null,"source_url":"https://github.com/ompluscator/dynamic-struct","tags":["dynamic","struct","reflection","runtime"],"install":[{"cmd":"go get github.com/ompluscator/dynamic-struct","lang":"bash","label":"Install github.com/ompluscator/dynamic-struct"}],"dependencies":[],"imports":[{"symbol":"dynamicstruct","correct":"github.com/ompluscator/dynamic-struct"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/ompluscator/dynamic-struct\"\n)\n\nfunc main() {\n\tinstance := dynamicstruct.NewStruct().\n\t\tAddField(\"Name\", \"string\", ``).\n\t\tAddField(\"Age\", \"int\", ``).\n\t\tBuild().\n\t\tNewStructInstance()\n\tinstance.Set(\"Name\", \"John\")\n\tinstance.Set(\"Age\", 30)\n\tfmt.Println(instance.FieldByName(\"Name\"))\n}","lang":"go","description":"Creates a dynamic struct with fields and sets values."},"warnings":[],"env_vars":null,"search_vec":"'creat':12 'dynam':2,6,15,18 'dynamic-struct':1,5 'go':13 'packag':4 'provid':8 'reflect':20 'runtim':17,21 'struct':3,7,14,19 'way':10","created_at":"2026-06-17T17:26:11.775000+00:00","updated_at":"2026-06-17T17:26:11.775000+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/ompluscator/dynamic-struct","github":"https://github.com/ompluscator/dynamic-struct","docs":"https://pkg.go.dev/github.com/ompluscator/dynamic-struct#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}