{"id":17105229,"url":"https://github.com/prologic/zdb","last_synced_at":"2026-02-18T15:02:02.272Z","repository":{"id":126875725,"uuid":"388428375","full_name":"prologic/zdb","owner":"prologic","description":"zdb","archived":false,"fork":false,"pushed_at":"2021-07-22T10:52:39.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T03:54:48.072Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/prologic.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":"2021-07-22T10:52:34.000Z","updated_at":"2022-06-14T17:49:25.000Z","dependencies_parsed_at":"2023-06-18T13:33:53.060Z","dependency_job_id":null,"html_url":"https://github.com/prologic/zdb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prologic%2Fzdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prologic%2Fzdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prologic%2Fzdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prologic%2Fzdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prologic","download_url":"https://codeload.github.com/prologic/zdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245163586,"owners_count":20570963,"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":[],"created_at":"2024-10-14T15:41:19.330Z","updated_at":"2025-10-12T05:31:55.261Z","avatar_url":"https://github.com/prologic.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"package main\n\nimport (\n  \"bufio\"\n  \"io\"\n  \"log\"\n  \"net\"\n  // \"os\"\n  \"strings\"\n)\n\nfunc main() {\n  _startTime := time.Now()\n  startTime := _startTime.Unix()\n\n  con, err := net.Dial(\"tcp\", \"0.0.0.0:9999\")\n  if err != nil {\n    log.Fatalln(err)\n  }\n  defer con.Close()\n\n  // clientReader := bufio.NewReader(os.Stdin)\n  serverReader := bufio.NewReader(con)\n  \n  for {\n    // Waiting for the client request\n    // clientRequest, err := clientReader.ReadString('\\n')\n    clientRequest := \"What the fuck\"\n\n    switch err {\n    case nil:\n      clientRequest := strings.TrimSpace(clientRequest)\n      if _, err = con.Write([]byte(clientRequest + \"\\n\")); err != nil {\n        log.Printf(\"failed to send the client request: %v\\n\", err)\n      }\n    case io.EOF:\n      log.Println(\"client closed the connection\")\n      return\n    default:\n      log.Printf(\"client error: %v\\n\", err)\n      return\n    }\n\n    // Waiting for the server response\n    serverResponse, err := serverReader.ReadString('\\n')\n\n    switch err {\n    case nil:\n      log.Println(strings.TrimSpace(serverResponse))\n    case io.EOF:\n      log.Println(\"server closed the connection\")\n      return\n    default:\n      log.Printf(\"server error: %v\\n\", err)\n      return\n    }\n  }\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprologic%2Fzdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprologic%2Fzdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprologic%2Fzdb/lists"}