Files

1 line
794 B
JSON

{"repo": "architectppn/gostudy", "files": {"data.json": {"45a6d8b3fe49b5b9828b7811314f562b2a619fca": {"t": 1785600631.4168453, "n": 82, "h": "280ec1920f5ec1e4", "c": "{\n\t\"name\": \"菜鸟\",\n\t\"age\": 21,\n\t\"hobby\": [\n\t\t\"看书\",\n\t\t\"编程\",\n\t\t\"GoLang\",\n\t\t\"Apex\"\n\t]\n}"}}, "queue.go": {"a1f2237eaafb05f4a8e34522d0fb3fc7e9ba574b": {"t": 1785600633.575152, "n": 292, "h": "040991ac89933c43", "c": "package main\n\nimport \"fmt\"\n\nfunc main() {\n\t// 队列\n\tqueue := make([]int, 0)\n\t// 入队\n\tqueue = append(queue, 10)\n\tfmt.Println(\"队列: \", queue)\n\n\t// 出队\n\tv := queue[0]\n\tfmt.Println(\"v: \", v)\n\tqueue = queue[1:]\n\tif len(queue) == 0 {\n\t\tfmt.Println(\"队列空了\")\n\t}\n\n\tfmt.Println(\"queue: \", queue, \"zero: \")\n}\n"}}}}