Skip to content

Instantly share code, notes, and snippets.

Avatar
🇯🇵

qushot

🇯🇵
View GitHub Profile
@qushot
qushot / increment_decrement.go
Created Mar 11, 2019
Increment vs Decrement
View increment_decrement.go
package increment_decrement
var (
min = 0
max = 10000000
)
func Increment() {
cnt := min
for i := min; i < max; i++{
@qushot
qushot / swagger.json
Created Jul 6, 2018
swagger.jsonのサンプル
View 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 Jul 6, 2018
swagger.jsonのサンプル
View model.go
package hoge
type ErrorModel struct {
Code int32
Message string
}
type NewPet struct {
Name string
Tag string
@qushot
qushot / swagger.json
Created Jul 6, 2018
swagger.jsonのサンプル
View 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"
},
You can’t perform that action at this time.