{"id":21803040,"url":"https://github.com/litongjava/litongjava-go-simple-http-server","last_synced_at":"2026-05-11T16:12:33.695Z","repository":{"id":105550285,"uuid":"537803081","full_name":"litongjava/litongjava-go-simple-http-server","owner":"litongjava","description":"一个简单的go服务器","archived":false,"fork":false,"pushed_at":"2024-08-26T09:53:21.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-26T04:09:32.302Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/litongjava.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":"2022-09-17T12:33:58.000Z","updated_at":"2024-08-26T09:53:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"469bf186-519d-4a29-a7d3-2af071c8f20c","html_url":"https://github.com/litongjava/litongjava-go-simple-http-server","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litongjava%2Flitongjava-go-simple-http-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litongjava%2Flitongjava-go-simple-http-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litongjava%2Flitongjava-go-simple-http-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litongjava%2Flitongjava-go-simple-http-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litongjava","download_url":"https://codeload.github.com/litongjava/litongjava-go-simple-http-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244752362,"owners_count":20504256,"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-11-27T11:37:37.740Z","updated_at":"2026-05-11T16:12:33.662Z","avatar_url":"https://github.com/litongjava.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# litongjava Go Simple HTTP Server\n\nThis is a simple HTTP server written in Go that serves static files from a specified directory.\n\n## Features\n\n- Serve static files from a directory.\n- Specify the port to listen on.\n- Display available IP addresses for accessing the server.\n\n## Usage\n\n### Downloading the Release\n\nYou can download the latest release of this project from the [GitHub Releases](https://github.com/litongjava/litongjava-go-simple-http-server/releases) page. Choose the release that matches your operating system and architecture.\n\n### Running the Server\n\nAfter downloading the release, extract the archive (if applicable) and change to the project directory. Then, run the HTTP server using the following command:\n\n```shell\n./http-server -port 3000 -dir /path/to/your/directory\n```\n\nReplace `/path/to/your/directory` with the path to the directory containing the files you want to serve. You can also specify a different port using the `-port` flag (default is 3000).\n\n### Accessing the Server\n\nAfter starting the server, you can access it in your web browser using one of the displayed IP addresses and the specified port. For example:\n\n- http://127.0.0.1:3000 (localhost)\n- http://192.168.0.100:3000 (local network)\n\n## Docker\n```docker\ndocker build -t litongjava/http-server:1.0.0 .\n```\n\n```shell\ndocker run --rm -p 3000:3000 litongjava/http-server:1.0.0\n```\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitongjava%2Flitongjava-go-simple-http-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitongjava%2Flitongjava-go-simple-http-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitongjava%2Flitongjava-go-simple-http-server/lists"}