{"id":30620416,"url":"https://github.com/jingyuexing/go-utils","last_synced_at":"2026-02-17T11:03:35.287Z","repository":{"id":129659400,"uuid":"611428138","full_name":"jingyuexing/go-utils","owner":"jingyuexing","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-17T02:56:22.000Z","size":130,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T03:30:23.263Z","etag":null,"topics":["cookie","go","template-string","time","time-duration","utils-library"],"latest_commit_sha":null,"homepage":"","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/jingyuexing.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-03-08T20:05:43.000Z","updated_at":"2025-01-17T02:56:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"70fa758a-fe8e-4bda-b94a-957267e11a64","html_url":"https://github.com/jingyuexing/go-utils","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/jingyuexing/go-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jingyuexing%2Fgo-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jingyuexing%2Fgo-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jingyuexing%2Fgo-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jingyuexing%2Fgo-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jingyuexing","download_url":"https://codeload.github.com/jingyuexing/go-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jingyuexing%2Fgo-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272858485,"owners_count":25005092,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cookie","go","template-string","time","time-duration","utils-library"],"created_at":"2025-08-30T13:36:58.286Z","updated_at":"2026-02-17T11:03:30.264Z","avatar_url":"https://github.com/jingyuexing.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## go-utils\n\nThis is a method or function that I often use\n\n\n## usage\n\n```go\nfunc Template(source string, data map[string]string, placeholder string) string\n```\n- This function can perform template string substitution\n\n[see test case](utils_test.go#L10-L82)\n\n```go\nfunc GetPathValue(raw string, realPath string) map[string]string\n```\n- This string will directly get the value corresponding to the template [see test case](utils_test.go#L91-L100)\n\n```go\nfunc (c *Cookie) NewCookie(cookie string, delimiter string, joiner string) *Cookie\n```\n- This can parse the Cookie string or parse the Query string, you can specify separators and connectors for parsing [see test case](utils_test.go#L84-L89)\n\n\n```go\nfunc Map2Struct(source map[string]any, bindingTarget any)\n```\n- You can bind the value of the map to the structure, provided that the fields of the structure and the fields of the map are consistent in lowercase [see test case](utils_test.go#L102-L105)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjingyuexing%2Fgo-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjingyuexing%2Fgo-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjingyuexing%2Fgo-utils/lists"}