{"id":24956499,"url":"https://github.com/will110/flyutils","last_synced_at":"2025-04-10T18:53:32.847Z","repository":{"id":268875510,"uuid":"209484463","full_name":"will110/flyutils","owner":"will110","description":"工具助手","archived":false,"fork":false,"pushed_at":"2019-10-14T03:20:21.000Z","size":37,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T16:41:21.252Z","etag":null,"topics":["go","go-slice","golang","golang-slice","golang-string","slice","string"],"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/will110.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":"2019-09-19T06:59:38.000Z","updated_at":"2020-07-13T16:55:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"2728e4b6-5782-4d0b-8d61-897e4c23ee69","html_url":"https://github.com/will110/flyutils","commit_stats":null,"previous_names":["will110/flyutils"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will110%2Fflyutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will110%2Fflyutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will110%2Fflyutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will110%2Fflyutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/will110","download_url":"https://codeload.github.com/will110/flyutils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248275351,"owners_count":21076577,"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":["go","go-slice","golang","golang-slice","golang-string","slice","string"],"created_at":"2025-02-03T06:35:37.085Z","updated_at":"2025-04-10T18:53:32.840Z","avatar_url":"https://github.com/will110.png","language":"Go","readme":"# 说明\nflyutils是一个golang项目小工具助手，封装了对字符串、切片、时间等相关的函数，方便、简单、易用。\n\n# 下载安装\ngo get github.com/will110/flyutils\n\n# 实例\n1、截取字符串\n\n\tstr := \"helloabc你好123\"\n\t//从前面开始截取\n\ts := flyutils.Substr(str, 2, 3)\n\tfmt.Println(s)\n\t\n\t//从后面开始截取\n\ts = flyutils.Substr(str, -3, 5)\n\tfmt.Println(s)\n\t\n2、生成长度为8位的随机字符串\n\n    s := flyutils.GenerateRandomStr(8)\n    fmt.Println(s)\n\n3、删除切片中的元素\n\n\ts := []string{\"a\", \"b\", \"c\", \"d\"}\n\ts1 := flyutils.SliceDeleteString(\"b\", s)\n\tfmt.Println(s1)\n\n\tn1 := []int64{22, 321, 89, 1102}\n\tn2 := flyutils.SliceDeleteInt64(89, n1)\n\tfmt.Println(n2)\n\t\n4、获取今天是几号\n\n\tw := flyutils.GetMonthDay()\n\tfmt.Println(w)\n\n5、获取今天星期几\n\n\td := flyutils.GetWeekday()\n\tfmt.Println(d)\n\t\n\n# 文档：\n[https://godoc.org/github.com/will110/flyutils](https://godoc.org/github.com/will110/flyutils \"文档\")","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwill110%2Fflyutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwill110%2Fflyutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwill110%2Fflyutils/lists"}