{"id":37175001,"url":"https://github.com/xuanjinliang/go_array","last_synced_at":"2026-01-14T20:26:38.467Z","repository":{"id":143808482,"uuid":"242924797","full_name":"xuanjinliang/go_array","owner":"xuanjinliang","description":"Go Slice operates like a JavaScript Array","archived":false,"fork":false,"pushed_at":"2020-03-11T03:46:35.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T12:07:01.793Z","etag":null,"topics":["array","go","javascript-array","slice"],"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/xuanjinliang.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":"2020-02-25T06:13:56.000Z","updated_at":"2020-03-12T06:53:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d52d41c-2236-45ff-b944-2ebb5b75c683","html_url":"https://github.com/xuanjinliang/go_array","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/xuanjinliang/go_array","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuanjinliang%2Fgo_array","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuanjinliang%2Fgo_array/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuanjinliang%2Fgo_array/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuanjinliang%2Fgo_array/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xuanjinliang","download_url":"https://codeload.github.com/xuanjinliang/go_array/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuanjinliang%2Fgo_array/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"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":["array","go","javascript-array","slice"],"created_at":"2026-01-14T20:26:37.799Z","updated_at":"2026-01-14T20:26:38.444Z","avatar_url":"https://github.com/xuanjinliang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go_array\n\nGo Slice operates like a JavaScript Array\n\n# How to use?\n\nYou have to declare an Array object:\n```cassandraql\n    var sliceData = []int{1, 2, 3}\n    array, err := Array(sliceData)\n    if err != nil {\n        fmt.Errorf(\"%v\", err.Error())\n    }\n    str := array.ToString()\n    fmt.Println(str) // 1,2,3\n```\n\n# Methods\n\n- GetData: Return interface array data, you can use assertions, for example:\n```cassandraql\n    array.GetData().([]int)\n```\n- Len: Return array length\n- ForEach\n- Concat\n- CopyWithin ........\n\n#### There are detailed examples in the code","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuanjinliang%2Fgo_array","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxuanjinliang%2Fgo_array","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuanjinliang%2Fgo_array/lists"}