{"id":37087045,"url":"https://github.com/innomic/mtconnect-go","last_synced_at":"2026-01-14T10:43:00.019Z","repository":{"id":214113430,"uuid":"735711826","full_name":"innomic/mtconnect-go","owner":"innomic","description":"Go language library that provides an efficient way to work with the MTConnect standard","archived":false,"fork":false,"pushed_at":"2023-12-25T23:27:12.000Z","size":118,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-06-21T17:03:07.231Z","etag":null,"topics":["go","golang","mtconnect","mtconnect-standard"],"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/innomic.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-12-25T23:16:44.000Z","updated_at":"2024-03-25T07:00:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"769eb2d2-ab27-4114-b3c7-1319f154c459","html_url":"https://github.com/innomic/mtconnect-go","commit_stats":null,"previous_names":["innomic/mtconnect-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/innomic/mtconnect-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innomic%2Fmtconnect-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innomic%2Fmtconnect-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innomic%2Fmtconnect-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innomic%2Fmtconnect-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/innomic","download_url":"https://codeload.github.com/innomic/mtconnect-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innomic%2Fmtconnect-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28417703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:25:19.714Z","status":"ssl_error","status_checked_at":"2026-01-14T10:22:49.371Z","response_time":107,"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":["go","golang","mtconnect","mtconnect-standard"],"created_at":"2026-01-14T10:42:58.399Z","updated_at":"2026-01-14T10:43:00.009Z","avatar_url":"https://github.com/innomic.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mtconnect-go\n\n**mtconnect-go** is a Go language library that provides an efficient way to work with the MTConnect standard. This library facilitates the generation of Go code from the XML Schema provided by various versions of MTConnect, enabling developers to easily integrate MTConnect data streams into their Go applications.\n\n## Features\n\n- **Version-Specific Packages**: **mtconnect-go** includes prepared packages for each version of the MTConnect standard, ensuring compatibility and ease of use across different versions.\n- **Go Structs for XML Unmarshalling**: All types are defined as Go structs, allowing for straightforward XML unmarshalling. This feature makes it simple to work with MTConnect data in Go applications.\n\n## Generate Codes\n\n```\nmake codegen VERSION=2.1\n```\n\n## Usage\n\nTo use **mtconnect-go**, simply import the package corresponding to the version of the MTConnect standard you are working with. Below is an example demonstrating how to use the library with the MTConnect v2.2 schema:\n\n```go\nimport (\n  \"encoding/xml\"\n  \"net/http\"\n  \"io\"\n  \"github.com/innomic/mtconnect-go/schema/v2.2/mtstreams\"\n)\n\nfunc main() {\n    resp, err := http.Get(\"https://mtconnect.trakhound.com/current\")\n    if err != nil {\n        // handle error\n    }\n    defer resp.Body.Close()\n\n    respBodyBytes, err := io.ReadAll(resp.Body)\n    if err != nil {\n        // handle error\n    }\n\n    var unmarshalled mtstreams.MTConnectStreamsType\n    err = xml.Unmarshal(respBodyBytes, \u0026unmarshalled)\n    if err != nil {\n        // handle error\n    }\n\n    // Use unmarshalled data\n}\n```\n\n## Example Struct\n\nHere is an example of a struct representing the MTConnectStreamsType, which can be unmarshalled from XML:\n\n```go\ntype MTConnectStreamsType struct {\n    Header  *HeaderType  `xml:\"Header\"`\n    Streams *StreamsType `xml:\"Streams\"`\n}\n```\n\n## Roadmap\n\n- **Client SDK Development**: Future plans include the development of a client SDK to streamline the process of connecting to MTConnect agents and retrieving data.\n- **Adapter SDK Development**: An adapter SDK is also on the roadmap, which will assist in the creation of MTConnect adapters for various types of equipment and data sources.\n\n## Contributing\n\nContributions to mtconnect-go are highly welcome! Whether it's improving the code, adding new features, or enhancing documentation, your input is valuable. Please feel free to fork the repository, make changes, and submit pull requests.\n\n## License\n\nThe XML schema is owned by [MTConnect Institute](https://github.com/mtconnect).\n\n**mtconnect-go** is licensed under the Apache License, Version 2.0, consistent with [MTConnect schema's licensing](https://github.com/mtconnect/schema/blob/master/LICENSE.TXT).\n\n## Links\n\n- https://schemas.mtconnect.org/\n- https://github.com/mtconnect\n- https://github.com/mtconnect/schema\n- https://github.com/TrakHound/MTConnect.NET\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnomic%2Fmtconnect-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finnomic%2Fmtconnect-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnomic%2Fmtconnect-go/lists"}