{"id":20663569,"url":"https://github.com/yanun0323/pkg","last_synced_at":"2025-04-19T15:55:20.932Z","repository":{"id":61446480,"uuid":"551654794","full_name":"yanun0323/pkg","owner":"yanun0323","description":"PKG is an useful develop package collection for golang.","archived":false,"fork":false,"pushed_at":"2025-04-16T18:52:29.000Z","size":151,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-17T03:43:18.866Z","etag":null,"topics":["golang","logger","yaml"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yanun0323.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-10-14T20:35:07.000Z","updated_at":"2025-04-16T18:52:32.000Z","dependencies_parsed_at":"2022-10-18T01:42:37.077Z","dependency_job_id":"8fe3c0bd-fb0d-4cce-9151-49feb9a89b3b","html_url":"https://github.com/yanun0323/pkg","commit_stats":{"total_commits":41,"total_committers":2,"mean_commits":20.5,"dds":0.2195121951219512,"last_synced_commit":"2ce5fd5bb7b3f978f60790bf44517e8ca29c9966"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanun0323%2Fpkg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanun0323%2Fpkg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanun0323%2Fpkg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanun0323%2Fpkg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanun0323","download_url":"https://codeload.github.com/yanun0323/pkg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249731216,"owners_count":21317341,"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":["golang","logger","yaml"],"created_at":"2024-11-16T19:18:42.390Z","updated_at":"2025-04-19T15:55:20.900Z","avatar_url":"https://github.com/yanun0323.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PKG\nPKG is an useful develop package collection for golang.\n\n## Requirements\n#### _Go 1.21 or higher_\n\n## Feature\n- `Config` provides init function to initialize the config yaml.\n- `Logger` provides logger to print/output the log. \n\n## Usage\n```go\nimport (\n    \"github.com/yanun0323/pkg/logs\"\n    \"github.com/yanun0323/pkg/config\"\n)\n\nfunc main() {\n    l := logs.New(logs.LevelInfo, logs.OutputStd())\n\n    err := config.Init(\"config\", true, \"../config\", \"../../config\")\n    if err != nil {\n        l.WithError(err).Fatal(\"init config\")\n    }\n\n    l.Info(\"init config succeed\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanun0323%2Fpkg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanun0323%2Fpkg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanun0323%2Fpkg/lists"}