Skip to content

Commit

Permalink
Merge pull request #49 from ybkuroki/develop
Browse files Browse the repository at this point in the history
Update version of golang and ci-lint
  • Loading branch information
ybkuroki authored May 4, 2021
2 parents c05a8e8 + 49c5d5d commit 9dbb4e7
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ linters:
# https://github.com/golangci/golangci/wiki/Configuration
# latest version: https://github.com/golangci/golangci-lint
service:
golangci-lint-version: 1.33.0
golangci-lint-version: 1.39.0
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: set up
uses: actions/setup-go@v2
with:
go-version: 1.14
go-version: 1.16
id: go
# Check out this repository
- name: checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.14
go-version: 1.16
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ There are the following services in the book management.
|Service Name|HTTP Method|URL|Parameter|Summary|
|:---|:---:|:---|:---|:---|
|Get Service|GET|``/api/book/get?id=[BOOK_ID]``|Book ID|Get a book data.|
|Get Service|GET|``/api/book?id=[BOOK_ID]``|Book ID|Get a book data.|
|List Service|GET|``/api/book/list?page=[PAGE_NUMBER]&size=[PAGE_SIZE]``|Page|Get a list of books.|
|Regist Service|POST|``/api/book/new``|Book|Regist a book data.|
|Edit Service|POST|``/api/book/edit``|Book|Edit a book data.|
Expand Down
2 changes: 0 additions & 2 deletions controller/api_const.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ const (
API = "/api"
// APIBook represents the group of book management API.
APIBook = API + "/book"
// APIBookGet represents the API to get one book.
APIBookGet = APIBook + "/get"
// APIBookList represents the API to get book's list.
APIBookList = APIBook + "/list"
// APIBookSearch represents the API to search book's list.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/ybkuroki/go-webapp-sample

go 1.14
go 1.16

require (
github.com/garyburd/redigo v1.6.2 // indirect
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><!--[if IE]><link rel="icon" href="/favicon.ico"><![endif]--><title>vuejs-webapp-sample</title><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700,400italic"><link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons"><link href="/css/app.750b60b0.css" rel="preload" as="style"><link href="/css/chunk-vendors.496dd37e.css" rel="preload" as="style"><link href="/js/app.4dd6524e.js" rel="preload" as="script"><link href="/js/chunk-vendors.63b1e6ef.js" rel="preload" as="script"><link href="/css/chunk-vendors.496dd37e.css" rel="stylesheet"><link href="/css/app.750b60b0.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/img/icons/favicon-16x16.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#4DBA87"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="vuejs-webapp-sample"><link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/img/icons/safari-pinned-tab.svg" color="#4DBA87"><meta name="msapplication-TileImage" content="/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body><noscript><strong>We're sorry but vuejs-webapp-sample doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.63b1e6ef.js"></script><script src="/js/app.4dd6524e.js"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><!--[if IE]><link rel="icon" href="/favicon.ico"><![endif]--><title>vuejs-webapp-sample</title><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700,400italic"><link rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons"><link href="/css/app.750b60b0.css" rel="preload" as="style"><link href="/css/chunk-vendors.496dd37e.css" rel="preload" as="style"><link href="/js/app.00c75836.js" rel="preload" as="script"><link href="/js/chunk-vendors.674ee411.js" rel="preload" as="script"><link href="/css/chunk-vendors.496dd37e.css" rel="stylesheet"><link href="/css/app.750b60b0.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/img/icons/favicon-16x16.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#4DBA87"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="vuejs-webapp-sample"><link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/img/icons/safari-pinned-tab.svg" color="#4DBA87"><meta name="msapplication-TileImage" content="/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body><noscript><strong>We're sorry but vuejs-webapp-sample doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.674ee411.js"></script><script src="/js/app.00c75836.js"></script></body></html>
1 change: 1 addition & 0 deletions public/js/app.00c75836.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion public/js/app.4dd6524e.js

This file was deleted.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "1fc37b540718bc46891f",
"revision": "3e7717bdfc48ea7fa969",
"url": "/css/app.750b60b0.css"
},
{
"revision": "4ec3df8ba9b11df7ca56",
"revision": "42ffa390b444e8ffdf66",
"url": "/css/chunk-vendors.496dd37e.css"
},
{
"revision": "f0049de67484c440ff12546cc27421e1",
"revision": "e3ca4de6c4489305b9763837bc9165d2",
"url": "/index.html"
},
{
"revision": "1fc37b540718bc46891f",
"url": "/js/app.4dd6524e.js"
"revision": "3e7717bdfc48ea7fa969",
"url": "/js/app.00c75836.js"
},
{
"revision": "4ec3df8ba9b11df7ca56",
"url": "/js/chunk-vendors.63b1e6ef.js"
"revision": "42ffa390b444e8ffdf66",
"url": "/js/chunk-vendors.674ee411.js"
},
{
"revision": "30a1780d264c79567fae09fac31b3072",
Expand Down
2 changes: 1 addition & 1 deletion public/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"/precache-manifest.7bd3992d9db14a41d716a79ef5e073c9.js"
"/precache-manifest.bb82bb163ab7db72c7bb44d916a17890.js"
);

workbox.core.setCacheNameDetails({prefix: "vuejs-webapp-sample"});
Expand Down
2 changes: 1 addition & 1 deletion router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func Init(e *echo.Echo, context mycontext.Context) {
account := controller.NewAccountController(context)
health := controller.NewHealthController(context)

e.GET(controller.APIBookGet, func(c echo.Context) error { return book.GetBook(c) })
e.GET(controller.APIBook, func(c echo.Context) error { return book.GetBook(c) })
e.GET(controller.APIBookList, func(c echo.Context) error { return book.GetBookList(c) })
e.GET(controller.APIBookSearch, func(c echo.Context) error { return book.GetBookSearch(c) })
e.POST(controller.APIBookRegist, func(c echo.Context) error { return book.PostBookRegist(c) })
Expand Down

0 comments on commit 9dbb4e7

Please sign in to comment.