{"id":41747144,"url":"https://github.com/mlctrez/servicego","last_synced_at":"2026-01-25T01:04:28.322Z","repository":{"id":57663046,"uuid":"477144279","full_name":"mlctrez/servicego","owner":"mlctrez","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-23T18:42:48.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T03:56:35.204Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlctrez.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}},"created_at":"2022-04-02T18:52:21.000Z","updated_at":"2025-04-23T18:42:52.000Z","dependencies_parsed_at":"2022-09-12T23:22:38.442Z","dependency_job_id":null,"html_url":"https://github.com/mlctrez/servicego","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/mlctrez/servicego","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlctrez%2Fservicego","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlctrez%2Fservicego/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlctrez%2Fservicego/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlctrez%2Fservicego/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlctrez","download_url":"https://codeload.github.com/mlctrez/servicego/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlctrez%2Fservicego/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28740420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T22:12:27.248Z","status":"ssl_error","status_checked_at":"2026-01-24T22:12:10.529Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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-25T01:04:28.252Z","updated_at":"2026-01-25T01:04:28.312Z","avatar_url":"https://github.com/mlctrez.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# servicego\n\n[![Go Report Card](https://badge.mlctrez.com/mlctrez/servicego)](https://goreportcard.com/report/github.com/mlctrez/servicego)\n\n### Background\n\nThe servicego package provides a wrapper for the functionality\nin [github.com/kardianos/service](https://github.com/kardianos/service)\n\nThis was written to simplify usage when writing lots of services, eliminating \nmuch of the boiler place code to set up a new service.\n\n### Defaults\n\nService name, display name, and description all default to the executable name.\n\n### A Brief How-To\n\n```bash\ngo get github.com/mlctrez/servicego\n```\n\nEmbed [Defaults](wrapper.go) in a struct for your [Service](api.go).\n\n```go\ntype exampleService struct {\n    servicego.Defaults\n}\n```\nImplement Start and Stop as you would in \n[github.com/kardianos/service](https://github.com/kardianos/service)\n\n```go\nfunc (e *exampleService) Start(s service.Service) error {\n    // Start should not block so do non-setup work in goroutines.\n    // Return non nil error if the service cannot be started.\n}\n\nfunc (e *exampleService) Stop(s service.Service) error {\n    // Cancel goroutines if you require a graceful shutdown.\n    // Stop should not block and should return with a few seconds.\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlctrez%2Fservicego","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlctrez%2Fservicego","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlctrez%2Fservicego/lists"}