Skip to content

Instantly share code, notes, and snippets.

View qushot's full-sized avatar
🇯🇵

qushot

🇯🇵
View GitHub Profile
@qushot
qushot / increment_decrement.go
Created March 11, 2019 12:19
Increment vs Decrement
package increment_decrement
var (
min = 0
max = 10000000
)
func Increment() {
cnt := min
for i := min; i < max; i++{
@qushot
qushot / swagger.json
Created July 6, 2018 07:48
swagger.jsonのサンプル
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Swagger Petstore",
"description": "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"name": "Swagger API Team"
},
@qushot
qushot / model.go
Last active July 6, 2018 07:53
swagger.jsonのサンプル
package hoge
type ErrorModel struct {
Code int32
Message string
}
type NewPet struct {
Name string
Tag string
@qushot
qushot / swagger.json
Created July 6, 2018 07:48
swagger.jsonのサンプル
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Swagger Petstore",
"description": "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"name": "Swagger API Team"
},