Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/songleo/hostname-app
hostname app
https://github.com/songleo/hostname-app
Last synced: about 1 month ago
JSON representation
hostname app
- Host: GitHub
- URL: https://github.com/songleo/hostname-app
- Owner: songleo
- License: apache-2.0
- Created: 2021-12-23T08:24:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-23T12:32:39.000Z (about 3 years ago)
- Last Synced: 2024-06-21T19:54:08.294Z (6 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hostname-app
The hostname-app is a simple http server to show the hostname and version:
```
$ export VERSION=v1.0 && go run main.go
2021/12/23 16:33:07 hostname server running on 0.0.0.0:8080 ...
2021/12/23 16:33:10 method=GET url=/ protocol=HTTP/1.1 status_code=200
2021/12/23 16:33:10 method=GET url=/favicon.ico protocol=HTTP/1.1 status_code=200
```go to http://localhost:8080/ :
```
hostname: host1
app version: v1.0
```