Skip to content

Instantly share code, notes, and snippets.

qushot

Block or report user

Report or block qushot

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.