Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takumi314/demogohttpserver
https://github.com/takumi314/demogohttpserver
go golang-examples golang-server google-api
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/takumi314/demogohttpserver
- Owner: takumi314
- Created: 2019-05-26T05:18:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-26T05:33:04.000Z (over 5 years ago)
- Last Synced: 2023-03-01T14:46:38.055Z (over 1 year ago)
- Topics: go, golang-examples, golang-server, google-api
- Language: Go
- Size: 3.51 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DemoGoHttpServer
This is 学習用ソースコード with Golang
## 実行方法
```sh
$ go run main.go
```## レスポンス
Webブラウザから`http://localhost:8080` にアクセスすれば確認できる。
### JSONパース例
`http://localhost:8080/api/clock`にリクエストすると現在時刻をJSON形式で返す。
```JSON
{
"current_time": "2019-05-26T14:29:48.904973+09:00"
}
```