repo_name
stringclasses
2 values
pr_number
int64
2.62k
123k
pr_title
stringlengths
8
193
pr_description
stringlengths
0
27.9k
author
stringlengths
3
23
date_created
timestamp[ns, tz=UTC]
date_merged
timestamp[ns, tz=UTC]
previous_commit
stringlengths
40
40
pr_commit
stringlengths
40
40
query
stringlengths
21
28k
filepath
stringlengths
7
174
before_content
stringlengths
0
554M
after_content
stringlengths
0
554M
label
int64
-1
1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./context_appengine.go
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build appengine // +build appengine package gin func init() { defaultPlatform = PlatformGoogleAppEngine }
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build appengine // +build appengine package gin func init() { defaultPlatform = PlatformGoogleAppEngine }
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./render/protobuf.go
// Copyright 2018 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import ( "net/http" "google.golang.org/protobuf/proto" ) // ProtoBuf contains the given interface object. type ProtoBuf struct { Data any } ...
// Copyright 2018 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import ( "net/http" "google.golang.org/protobuf/proto" ) // ProtoBuf contains the given interface object. type ProtoBuf struct { Data any } ...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./CODE_OF_CONDUCT.md
# Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender...
# Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./binding/binding_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "bytes" "encoding/json" "errors" "io" "io/ioutil" "mime/multipart" "net/http" "os" "reflect" "strconv" "strings" "t...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "bytes" "encoding/json" "errors" "io" "io/ioutil" "mime/multipart" "net/http" "os" "reflect" "strconv" "strings" "t...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./render/render.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import "net/http" // Render interface is to be implemented by JSON, XML, HTML, YAML and so on. type Render interface { // Render writes...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import "net/http" // Render interface is to be implemented by JSON, XML, HTML, YAML and so on. type Render interface { // Render writes...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./gin.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "fmt" "html/template" "net" "net/http" "os" "path" "strings" "sync" "github.com/gin-gonic/gin/internal/bytesconv" "githu...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "fmt" "html/template" "net" "net/http" "os" "path" "strings" "sync" "github.com/gin-gonic/gin/internal/bytesconv" "githu...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./utils_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "encoding/xml" "fmt" "net/http" "testing" "github.com/stretchr/testify/assert" ) func init() { SetMode(TestMode) }...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "encoding/xml" "fmt" "net/http" "testing" "github.com/stretchr/testify/assert" ) func init() { SetMode(TestMode) }...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./binding/binding_msgpack_test.go
// Copyright 2020 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !nomsgpack // +build !nomsgpack package binding import ( "bytes" "testing" "github.com/stretchr/testify/assert" "github.com/ugorji/go/codec" ) ...
// Copyright 2020 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !nomsgpack // +build !nomsgpack package binding import ( "bytes" "testing" "github.com/stretchr/testify/assert" "github.com/ugorji/go/codec" ) ...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./examples/README.md
# Gin Examples ⚠️ **NOTICE:** All gin examples have been moved as standalone repository to [here](https://github.com/gin-gonic/examples).
# Gin Examples ⚠️ **NOTICE:** All gin examples have been moved as standalone repository to [here](https://github.com/gin-gonic/examples).
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./doc.go
/* Package gin implements a HTTP web framework called gin. See https://gin-gonic.com/ for more information about gin. */ package gin // import "github.com/gin-gonic/gin"
/* Package gin implements a HTTP web framework called gin. See https://gin-gonic.com/ for more information about gin. */ package gin // import "github.com/gin-gonic/gin"
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./render/msgpack.go
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !nomsgpack // +build !nomsgpack package render import ( "net/http" "github.com/ugorji/go/codec" ) // Check interface implemented here to...
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !nomsgpack // +build !nomsgpack package render import ( "net/http" "github.com/ugorji/go/codec" ) // Check interface implemented here to...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./internal/json/go_json.go
// Copyright 2017 Bo-Yi Wu. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build go_json // +build go_json package json import json "github.com/goccy/go-json" var ( // Marshal is exported by gin/json package. Marshal = json.Marshal...
// Copyright 2017 Bo-Yi Wu. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build go_json // +build go_json package json import json "github.com/goccy/go-json" var ( // Marshal is exported by gin/json package. Marshal = json.Marshal...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./.git/hooks/pre-commit.sample
#!/bin/sh # # An example hook script to verify what is about to be committed. # Called by "git commit" with no arguments. The hook should # exit with non-zero status after issuing an appropriate message if # it wants to stop the commit. # # To enable this hook, rename this file to "pre-commit". if git rev-parse --ver...
#!/bin/sh # # An example hook script to verify what is about to be committed. # Called by "git commit" with no arguments. The hook should # exit with non-zero status after issuing an appropriate message if # it wants to stop the commit. # # To enable this hook, rename this file to "pre-commit". if git rev-parse --ver...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./.git/logs/refs/remotes/origin/HEAD
0000000000000000000000000000000000000000 53fbf4dbfbf465b552057e6f8d199a275151b7a1 jupyter <jupyter@data-collection2-susnato.c.rishabh-experiments.internal> 1705031630 +0000 clone: from https://github.com/gin-gonic/gin.git
0000000000000000000000000000000000000000 53fbf4dbfbf465b552057e6f8d199a275151b7a1 jupyter <jupyter@data-collection2-susnato.c.rishabh-experiments.internal> 1705031630 +0000 clone: from https://github.com/gin-gonic/gin.git
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./binding/json.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "bytes" "errors" "io" "net/http" "github.com/gin-gonic/gin/internal/json" ) // EnableDecoderUseNumber is used to call th...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "bytes" "errors" "io" "net/http" "github.com/gin-gonic/gin/internal/json" ) // EnableDecoderUseNumber is used to call th...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./logger_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "errors" "fmt" "net/http" "testing" "time" "github.com/stretchr/testify/assert" ) func init() { SetMode(TestMode)...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "errors" "fmt" "net/http" "testing" "time" "github.com/stretchr/testify/assert" ) func init() { SetMode(TestMode)...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./path_test.go
// Copyright 2013 Julien Schmidt. All rights reserved. // Based on the path package, Copyright 2009 The Go Authors. // Use of this source code is governed by a BSD-style license that can be found // at https://github.com/julienschmidt/httprouter/blob/master/LICENSE package gin import ( "strings" "testing" "github...
// Copyright 2013 Julien Schmidt. All rights reserved. // Based on the path package, Copyright 2009 The Go Authors. // Use of this source code is governed by a BSD-style license that can be found // at https://github.com/julienschmidt/httprouter/blob/master/LICENSE package gin import ( "strings" "testing" "github...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./codecov.yml
coverage: notify: gitter: default: url: https://webhooks.gitter.im/e/d90dcdeeab2f1e357165
coverage: notify: gitter: default: url: https://webhooks.gitter.im/e/d90dcdeeab2f1e357165
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./.git/hooks/pre-rebase.sample
#!/bin/sh # # Copyright (c) 2006, 2008 Junio C Hamano # # The "pre-rebase" hook is run just before "git rebase" starts doing # its job, and can prevent the command from running by exiting with # non-zero status. # # The hook is called with the following parameters: # # $1 -- the upstream the series was forked from. # $...
#!/bin/sh # # Copyright (c) 2006, 2008 Junio C Hamano # # The "pre-rebase" hook is run just before "git rebase" starts doing # its job, and can prevent the command from running by exiting with # non-zero status. # # The hook is called with the following parameters: # # $1 -- the upstream the series was forked from. # $...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./binding/protobuf.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "errors" "io/ioutil" "net/http" "google.golang.org/protobuf/proto" ) type protobufBinding struct{} func (protobufBinding...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "errors" "io/ioutil" "net/http" "google.golang.org/protobuf/proto" ) type protobufBinding struct{} func (protobufBinding...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./testdata/certificate/key.pem
-----BEGIN RSA PRIVATE KEY----- MIIEogIBAAKCAQEAqbKP9hmkPn0GnLjDep/pXMzD25QGxan4g/iSXvPlyYYdhQef 9iilMse9HbcYAHXanoqblBbMIG4kXiPrU8lcd+Df+uNKFnvslxDeTPG7LWIoMj4M 0o3sqXOt2Mnj1APSVzNkd4G+8IvsmwkUoWMbLraudK25bwtogR22NdP4ZRlPEmHo bvI9h8MxLUix0xAY51sbA1r6qiAy5A+HRPMfD4LvebIquNjqlESKOScwL+ucgzP1 0s+3oqXFfLhuvjjd2ljp1gYiEO4q...
-----BEGIN RSA PRIVATE KEY----- MIIEogIBAAKCAQEAqbKP9hmkPn0GnLjDep/pXMzD25QGxan4g/iSXvPlyYYdhQef 9iilMse9HbcYAHXanoqblBbMIG4kXiPrU8lcd+Df+uNKFnvslxDeTPG7LWIoMj4M 0o3sqXOt2Mnj1APSVzNkd4G+8IvsmwkUoWMbLraudK25bwtogR22NdP4ZRlPEmHo bvI9h8MxLUix0xAY51sbA1r6qiAy5A+HRPMfD4LvebIquNjqlESKOScwL+ucgzP1 0s+3oqXFfLhuvjjd2ljp1gYiEO4q...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./internal/json/jsoniter.go
// Copyright 2017 Bo-Yi Wu. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build jsoniter // +build jsoniter package json import jsoniter "github.com/json-iterator/go" var ( json = jsoniter.ConfigCompatibleWithStandardLibrary // Ma...
// Copyright 2017 Bo-Yi Wu. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build jsoniter // +build jsoniter package json import jsoniter "github.com/json-iterator/go" var ( json = jsoniter.ConfigCompatibleWithStandardLibrary // Ma...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./binding/yaml_test.go
// Copyright 2019 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestYAMLBindingBindBody(t *testing.T) ...
// Copyright 2019 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestYAMLBindingBindBody(t *testing.T) ...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./internal/bytesconv/bytesconv_test.go
// Copyright 2020 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package bytesconv import ( "bytes" "math/rand" "strings" "testing" "time" ) var testString = "Albert Einstein: Logic will get you from A to B. Imagination...
// Copyright 2020 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package bytesconv import ( "bytes" "math/rand" "strings" "testing" "time" ) var testString = "Albert Einstein: Logic will get you from A to B. Imagination...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./binding/query.go
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import "net/http" type queryBinding struct{} func (queryBinding) Name() string { return "query" } func (queryBinding) Bind(req *http...
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import "net/http" type queryBinding struct{} func (queryBinding) Name() string { return "query" } func (queryBinding) Bind(req *http...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./LICENSE
The MIT License (MIT) Copyright (c) 2014 Manuel Martínez-Almeida Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,...
The MIT License (MIT) Copyright (c) 2014 Manuel Martínez-Almeida Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,...
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./testdata/template/raw.tmpl
Date: {[{.now | formatAsDate}]}
Date: {[{.now | formatAsDate}]}
-1
gin-gonic/gin
3,211
switch min version of go to 1.15
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed cod...
thinkerou
2022-06-26T13:03:15Z
2022-06-26T23:11:42Z
12b55b4fe9f8e06da3b8f0c4314b3d68a7051e9f
6de2245e6265a077326d13cb249378b2d27ad781
switch min version of go to 1.15. - With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modif...
./utils.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "encoding/xml" "net/http" "os" "path" "reflect" "runtime" "strings" "unicode" ) // BindKey indicates a default bind key. c...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "encoding/xml" "net/http" "os" "path" "reflect" "runtime" "strings" "unicode" ) // BindKey indicates a default bind key. c...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./.github/workflows/gin.yml
name: Run Tests on: push: branches: - master pull_request: branches: - master jobs: lint: runs-on: ubuntu-latest steps: - name: Setup go uses: actions/setup-go@v3 with: go-version: '^1.16' - name: Checkout repository uses: actions/checkou...
name: Run Tests on: push: branches: - master pull_request: branches: - master jobs: lint: runs-on: ubuntu-latest steps: - name: Setup go uses: actions/setup-go@v3 with: go-version: '^1.16' - name: Checkout repository uses: actions/checkou...
1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./Makefile
GO ?= go GOFMT ?= gofmt "-s" GO_VERSION=$(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2) PACKAGES ?= $(shell $(GO) list ./...) VETPACKAGES ?= $(shell $(GO) list ./... | grep -v /examples/) GOFILES := $(shell find . -name "*.go") TESTFOLDER := $(shell $(GO) list ./... | grep -E 'gin$$|binding$$|render...
GO ?= go GOFMT ?= gofmt "-s" GO_VERSION=$(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2) PACKAGES ?= $(shell $(GO) list ./...) VETPACKAGES ?= $(shell $(GO) list ./... | grep -v /examples/) GOFILES := $(shell find . -name "*.go") TESTFOLDER := $(shell $(GO) list ./... | grep -E 'gin$$|binding$$|render...
1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./README.md
# Gin Web Framework <img align="right" width="159px" src="https://raw.githubusercontent.com/gin-gonic/logo/master/color.png"> [![Build Status](https://github.com/gin-gonic/gin/workflows/Run%20Tests/badge.svg?branch=master)](https://github.com/gin-gonic/gin/actions?query=branch%3Amaster) [![codecov](https://codecov.io...
# Gin Web Framework <img align="right" width="159px" src="https://raw.githubusercontent.com/gin-gonic/logo/master/color.png"> [![Build Status](https://github.com/gin-gonic/gin/workflows/Run%20Tests/badge.svg?branch=master)](https://github.com/gin-gonic/gin/actions?query=branch%3Amaster) [![codecov](https://codecov.io...
1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./go.mod
module github.com/gin-gonic/gin go 1.18 require ( github.com/gin-contrib/sse v0.1.0 github.com/go-playground/validator/v10 v10.10.0 github.com/goccy/go-json v0.9.10 github.com/json-iterator/go v1.1.12 github.com/mattn/go-isatty v0.0.14 github.com/pelletier/go-toml/v2 v2.0.2 github.com/stretchr/testify v1.8.0 ...
module github.com/gin-gonic/gin go 1.18 require ( github.com/bytedance/sonic v1.3.2 github.com/gin-contrib/sse v0.1.0 github.com/go-playground/validator/v10 v10.10.0 github.com/goccy/go-json v0.9.10 github.com/json-iterator/go v1.1.12 github.com/mattn/go-isatty v0.0.14 github.com/pelletier/go-toml/v2 v2.0.2 g...
1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./go.sum
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3l...
github.com/bytedance/sonic v1.3.2 h1:xpJnWeCzu+XBfGBtNpk8jrMLZ+UduMEx0rAbHkFK5Cs= github.com/bytedance/sonic v1.3.2/go.mod h1:V973WhNhGmvHxW6nQmsHEfHaoU9F3zTF+93rH03hcUQ= github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F32mSOjUmXrMHnKwZdA8wcEefY7UVqBKYGjpdQY= github.com/chenzhuoyu/base64x...
1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./internal/json/json.go
// Copyright 2017 Bo-Yi Wu. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !jsoniter && !go_json // +build !jsoniter,!go_json package json import "encoding/json" var ( // Marshal is exported by gin/json package. Marshal = jso...
// Copyright 2017 Bo-Yi Wu. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !jsoniter && !go_json && !(sonic && avx && (linux || windows || darwin) && amd64) // +build !jsoniter // +build !go_json // +build !sonic !avx !linux,!wind...
1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./utils.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "encoding/xml" "net/http" "os" "path" "reflect" "runtime" "strings" "unicode" ) // BindKey indicates a default bind key. c...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "encoding/xml" "net/http" "os" "path" "reflect" "runtime" "strings" "unicode" ) // BindKey indicates a default bind key. c...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./context.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "errors" "io" "io/ioutil" "log" "math" "mime/multipart" "net" "net/http" "net/url" "os" "strings" "sync" "time" "git...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "errors" "io" "io/ioutil" "log" "math" "mime/multipart" "net" "net/http" "net/url" "os" "strings" "sync" "time" "git...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./render/reader.go
// Copyright 2018 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import ( "io" "net/http" "strconv" ) // Reader contains the IO reader and its length, and custom ContentType and other headers. type Reader s...
// Copyright 2018 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import ( "io" "net/http" "strconv" ) // Reader contains the IO reader and its length, and custom ContentType and other headers. type Reader s...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./binding/yaml_test.go
// Copyright 2019 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestYAMLBindingBindBody(t *testing.T) ...
// Copyright 2019 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestYAMLBindingBindBody(t *testing.T) ...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./binding/xml_test.go
// Copyright 2019 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestXMLBindingBindBody(t *testing.T) {...
// Copyright 2019 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestXMLBindingBindBody(t *testing.T) {...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./recovery_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "fmt" "net" "net/http" "os" "strings" "syscall" "testing" "github.com/stretchr/testify/assert" ) func TestPanicC...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "fmt" "net" "net/http" "os" "strings" "syscall" "testing" "github.com/stretchr/testify/assert" ) func TestPanicC...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./deprecated.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "log" "github.com/gin-gonic/gin/binding" ) // BindWith binds the passed struct pointer using the specified binding engine. // S...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "log" "github.com/gin-gonic/gin/binding" ) // BindWith binds the passed struct pointer using the specified binding engine. // S...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./version.go
// Copyright 2018 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin // Version is the current gin framework's version. const Version = "v1.8.1"
// Copyright 2018 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin // Version is the current gin framework's version. const Version = "v1.8.1"
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./render/protobuf.go
// Copyright 2018 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import ( "net/http" "google.golang.org/protobuf/proto" ) // ProtoBuf contains the given interface object. type ProtoBuf struct { Data any } ...
// Copyright 2018 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import ( "net/http" "google.golang.org/protobuf/proto" ) // ProtoBuf contains the given interface object. type ProtoBuf struct { Data any } ...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./routergroup.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "net/http" "path" "regexp" "strings" ) var ( // regEnLetter matches english letters for http method name regEnLetter = regex...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "net/http" "path" "regexp" "strings" ) var ( // regEnLetter matches english letters for http method name regEnLetter = regex...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./gin_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "crypto/tls" "fmt" "html/template" "io/ioutil" "net" "net/http" "net/http/httptest" "reflect" "strconv" "sync/atomic" "t...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "crypto/tls" "fmt" "html/template" "io/ioutil" "net" "net/http" "net/http/httptest" "reflect" "strconv" "sync/atomic" "t...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./binding/header.go
// Copyright 2022 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "net/http" "net/textproto" "reflect" ) type headerBinding struct{} func (headerBinding) Name() string { return "header" } func (...
// Copyright 2022 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "net/http" "net/textproto" "reflect" ) type headerBinding struct{} func (headerBinding) Name() string { return "header" } func (...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./logger_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "errors" "fmt" "net/http" "testing" "time" "github.com/stretchr/testify/assert" ) func init() { SetMode(TestMode)...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "errors" "fmt" "net/http" "testing" "time" "github.com/stretchr/testify/assert" ) func init() { SetMode(TestMode)...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./binding/any.go
// Copyright 2022 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !go1.18 // +build !go1.18 package binding type any = interface{}
// Copyright 2022 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !go1.18 // +build !go1.18 package binding type any = interface{}
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./context_appengine.go
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build appengine // +build appengine package gin func init() { defaultPlatform = PlatformGoogleAppEngine }
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build appengine // +build appengine package gin func init() { defaultPlatform = PlatformGoogleAppEngine }
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./any.go
// Copyright 2022 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !go1.18 // +build !go1.18 package gin type any = interface{}
// Copyright 2022 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !go1.18 // +build !go1.18 package gin type any = interface{}
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./tree.go
// Copyright 2013 Julien Schmidt. All rights reserved. // Use of this source code is governed by a BSD-style license that can be found // at https://github.com/julienschmidt/httprouter/blob/master/LICENSE package gin import ( "bytes" "net/url" "strings" "unicode" "unicode/utf8" "github.com/gin-gonic/gin/intern...
// Copyright 2013 Julien Schmidt. All rights reserved. // Use of this source code is governed by a BSD-style license that can be found // at https://github.com/julienschmidt/httprouter/blob/master/LICENSE package gin import ( "bytes" "net/url" "strings" "unicode" "unicode/utf8" "github.com/gin-gonic/gin/intern...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./internal/bytesconv/bytesconv_test.go
// Copyright 2020 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package bytesconv import ( "bytes" "math/rand" "strings" "testing" "time" ) var testString = "Albert Einstein: Logic will get you from A to B. Imagination...
// Copyright 2020 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package bytesconv import ( "bytes" "math/rand" "strings" "testing" "time" ) var testString = "Albert Einstein: Logic will get you from A to B. Imagination...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./mode.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "flag" "io" "os" "github.com/gin-gonic/gin/binding" ) // EnvGinMode indicates environment name for gin mode. const EnvGinMode...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "flag" "io" "os" "github.com/gin-gonic/gin/binding" ) // EnvGinMode indicates environment name for gin mode. const EnvGinMode...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./routes_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "fmt" "io/ioutil" "net/http" "net/http/httptest" "os" "path/filepath" "testing" "github.com/stretchr/testify/assert" ) ty...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "fmt" "io/ioutil" "net/http" "net/http/httptest" "os" "path/filepath" "testing" "github.com/stretchr/testify/assert" ) ty...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./gin_integration_test.go
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bufio" "crypto/tls" "fmt" "html/template" "io/ioutil" "net" "net/http" "net/http/httptest" "os" "path/filepath" "runtim...
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bufio" "crypto/tls" "fmt" "html/template" "io/ioutil" "net" "net/http" "net/http/httptest" "os" "path/filepath" "runtim...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./.golangci.yml
run: timeout: 5m linters: enable: - asciicheck - depguard - dogsled - durationcheck - errcheck - errorlint - exportloopref - gci - gofmt - goimports - gosec - misspell - nakedret - nilerr - nolintlint - revive - wastedassign issues: exclude-rules...
run: timeout: 5m linters: enable: - asciicheck - depguard - dogsled - durationcheck - errcheck - errorlint - exportloopref - gci - gofmt - goimports - gosec - misspell - nakedret - nilerr - nolintlint - revive - wastedassign issues: exclude-rules...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./mode_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "flag" "os" "testing" "github.com/gin-gonic/gin/binding" "github.com/stretchr/testify/assert" ) func init() { os.Setenv(Env...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "flag" "os" "testing" "github.com/gin-gonic/gin/binding" "github.com/stretchr/testify/assert" ) func init() { os.Setenv(Env...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./binding/form_mapping.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "errors" "fmt" "reflect" "strconv" "strings" "time" "github.com/gin-gonic/gin/internal/bytesconv" "github.com/gin-goni...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "errors" "fmt" "reflect" "strconv" "strings" "time" "github.com/gin-gonic/gin/internal/bytesconv" "github.com/gin-goni...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./render/reader_test.go
// Copyright 2019 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import ( "net/http/httptest" "strings" "testing" "github.com/stretchr/testify/require" ) func TestReaderRenderNoHeaders(t *testing.T) { co...
// Copyright 2019 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import ( "net/http/httptest" "strings" "testing" "github.com/stretchr/testify/require" ) func TestReaderRenderNoHeaders(t *testing.T) { co...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./binding/form_mapping_test.go
// Copyright 2019 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "reflect" "testing" "time" "github.com/stretchr/testify/assert" ) func TestMappingBaseTypes(t *testing.T) { intPtr := func(i int...
// Copyright 2019 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "reflect" "testing" "time" "github.com/stretchr/testify/assert" ) func TestMappingBaseTypes(t *testing.T) { intPtr := func(i int...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./.github/PULL_REQUEST_TEMPLATE.md
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed code ch...
- With pull requests: - Open your pull request against `master` - Your pull request should have no more than two commits, if not you should squash them. - It should pass all tests in the available continuous integration systems such as GitHub Actions. - You should add/modify tests to cover your proposed code ch...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./auth_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "encoding/base64" "net/http" "net/http/httptest" "testing" "github.com/stretchr/testify/assert" ) func TestBasicAuth(t *test...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "encoding/base64" "net/http" "net/http/httptest" "testing" "github.com/stretchr/testify/assert" ) func TestBasicAuth(t *test...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./deprecated_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "net/http" "net/http/httptest" "testing" "github.com/gin-gonic/gin/binding" "github.com/stretchr/testify/assert" ) ...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "net/http" "net/http/httptest" "testing" "github.com/gin-gonic/gin/binding" "github.com/stretchr/testify/assert" ) ...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./gin.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "fmt" "html/template" "net" "net/http" "os" "path" "strings" "sync" "github.com/gin-gonic/gin/internal/bytesconv" "githu...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "fmt" "html/template" "net" "net/http" "os" "path" "strings" "sync" "github.com/gin-gonic/gin/internal/bytesconv" "githu...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./render/render_msgpack_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !nomsgpack // +build !nomsgpack package render import ( "bytes" "net/http/httptest" "testing" "github.com/stretchr/testify/assert" "gi...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !nomsgpack // +build !nomsgpack package render import ( "bytes" "net/http/httptest" "testing" "github.com/stretchr/testify/assert" "gi...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./CHANGELOG.md
# Gin ChangeLog ## Gin v1.8.1 ### ENHANCEMENTS * feat(context): add ContextWithFallback feature flag [#3172](https://github.com/gin-gonic/gin/pull/3172) ## Gin v1.8.0 ## Break Changes * TrustedProxies: Add default IPv6 support and refactor [#2967](https://github.com/gin-gonic/gin/pull/2967). Please replace `Remot...
# Gin ChangeLog ## Gin v1.8.1 ### ENHANCEMENTS * feat(context): add ContextWithFallback feature flag [#3172](https://github.com/gin-gonic/gin/pull/3172) ## Gin v1.8.0 ## Break Changes * TrustedProxies: Add default IPv6 support and refactor [#2967](https://github.com/gin-gonic/gin/pull/2967). Please replace `Remot...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./CONTRIBUTING.md
## Contributing - With issues: - Use the search tool before opening a new issue. - Please provide source code and commit sha if you found a bug. - Review existing issues and provide feedback or react to them. - With pull requests: - Open your pull request against `master` - Your pull request should have no ...
## Contributing - With issues: - Use the search tool before opening a new issue. - Please provide source code and commit sha if you found a bug. - Review existing issues and provide feedback or react to them. - With pull requests: - Open your pull request against `master` - Your pull request should have no ...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./examples/README.md
# Gin Examples ⚠️ **NOTICE:** All gin examples have been moved as standalone repository to [here](https://github.com/gin-gonic/examples).
# Gin Examples ⚠️ **NOTICE:** All gin examples have been moved as standalone repository to [here](https://github.com/gin-gonic/examples).
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./AUTHORS.md
List of all the awesome people working to make Gin the best Web Framework in Go. ## gin 1.x series authors **Gin Core Team:** Bo-Yi Wu (@appleboy), thinkerou (@thinkerou), Javier Provecho (@javierprovecho) ## gin 0.x series authors **Maintainers:** Manu Martinez-Almeida (@manucorporat), Javier Provecho (@javierprov...
List of all the awesome people working to make Gin the best Web Framework in Go. ## gin 1.x series authors **Gin Core Team:** Bo-Yi Wu (@appleboy), thinkerou (@thinkerou), Javier Provecho (@javierprovecho) ## gin 0.x series authors **Maintainers:** Manu Martinez-Almeida (@manucorporat), Javier Provecho (@javierprov...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./context_1.16_test.go
// Copyright 2021 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !go1.17 // +build !go1.17 package gin import ( "bytes" "mime/multipart" "net/http" "net/http/httptest" "testing" "github.com/stretchr/testify...
// Copyright 2021 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !go1.17 // +build !go1.17 package gin import ( "bytes" "mime/multipart" "net/http" "net/http/httptest" "testing" "github.com/stretchr/testify...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./binding/form.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "errors" "net/http" ) const defaultMemory = 32 << 20 type formBinding struct{} type formPostBinding struct{} type formMulti...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "errors" "net/http" ) const defaultMemory = 32 << 20 type formBinding struct{} type formPostBinding struct{} type formMulti...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./internal/json/jsoniter.go
// Copyright 2017 Bo-Yi Wu. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build jsoniter // +build jsoniter package json import jsoniter "github.com/json-iterator/go" var ( json = jsoniter.ConfigCompatibleWithStandardLibrary // Ma...
// Copyright 2017 Bo-Yi Wu. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build jsoniter // +build jsoniter package json import jsoniter "github.com/json-iterator/go" var ( json = jsoniter.ConfigCompatibleWithStandardLibrary // Ma...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./render/data.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import "net/http" // Data contains ContentType and bytes data. type Data struct { ContentType string Data []byte } // Render (...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import "net/http" // Data contains ContentType and bytes data. type Data struct { ContentType string Data []byte } // Render (...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./testdata/certificate/cert.pem
-----BEGIN CERTIFICATE----- MIIC9DCCAdygAwIBAgIQUNSK+OxWHYYFxHVJV0IlpDANBgkqhkiG9w0BAQsFADAS MRAwDgYDVQQKEwdBY21lIENvMB4XDTE3MTExNjEyMDA0N1oXDTE4MTExNjEyMDA0 N1owEjEQMA4GA1UEChMHQWNtZSBDbzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC AQoCggEBAKmyj/YZpD59Bpy4w3qf6VzMw9uUBsWp+IP4kl7z5cmGHYUHn/YopTLH vR23GAB12p6Km5QWzCBuJF4j61PJXHfg...
-----BEGIN CERTIFICATE----- MIIC9DCCAdygAwIBAgIQUNSK+OxWHYYFxHVJV0IlpDANBgkqhkiG9w0BAQsFADAS MRAwDgYDVQQKEwdBY21lIENvMB4XDTE3MTExNjEyMDA0N1oXDTE4MTExNjEyMDA0 N1owEjEQMA4GA1UEChMHQWNtZSBDbzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC AQoCggEBAKmyj/YZpD59Bpy4w3qf6VzMw9uUBsWp+IP4kl7z5cmGHYUHn/YopTLH vR23GAB12p6Km5QWzCBuJF4j61PJXHfg...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./middleware_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "errors" "net/http" "strings" "testing" "github.com/gin-contrib/sse" "github.com/stretchr/testify/assert" ) func TestMiddle...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "errors" "net/http" "strings" "testing" "github.com/gin-contrib/sse" "github.com/stretchr/testify/assert" ) func TestMiddle...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./render/redirect.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import ( "fmt" "net/http" ) // Redirect contains the http request reference and redirects status code and location. type Redirect stru...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import ( "fmt" "net/http" ) // Redirect contains the http request reference and redirects status code and location. type Redirect stru...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./.git/ORIG_HEAD
6de2245e6265a077326d13cb249378b2d27ad781
6de2245e6265a077326d13cb249378b2d27ad781
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./.gitignore
vendor/* !vendor/vendor.json coverage.out count.out test profile.out tmp.out
vendor/* !vendor/vendor.json coverage.out count.out test profile.out tmp.out
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./binding/binding_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "bytes" "encoding/json" "errors" "io" "io/ioutil" "mime/multipart" "net/http" "os" "reflect" "strconv" "strings" "t...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import ( "bytes" "encoding/json" "errors" "io" "io/ioutil" "mime/multipart" "net/http" "os" "reflect" "strconv" "strings" "t...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./binding/query.go
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import "net/http" type queryBinding struct{} func (queryBinding) Name() string { return "query" } func (queryBinding) Bind(req *http...
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import "net/http" type queryBinding struct{} func (queryBinding) Name() string { return "query" } func (queryBinding) Bind(req *http...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./path_test.go
// Copyright 2013 Julien Schmidt. All rights reserved. // Based on the path package, Copyright 2009 The Go Authors. // Use of this source code is governed by a BSD-style license that can be found // at https://github.com/julienschmidt/httprouter/blob/master/LICENSE package gin import ( "strings" "testing" "github...
// Copyright 2013 Julien Schmidt. All rights reserved. // Based on the path package, Copyright 2009 The Go Authors. // Use of this source code is governed by a BSD-style license that can be found // at https://github.com/julienschmidt/httprouter/blob/master/LICENSE package gin import ( "strings" "testing" "github...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./render/render_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import ( "encoding/xml" "errors" "html/template" "net/http" "net/http/httptest" "strconv" "strings" "testing" testdata "github....
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import ( "encoding/xml" "errors" "html/template" "net/http" "net/http/httptest" "strconv" "strings" "testing" testdata "github....
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./LICENSE
The MIT License (MIT) Copyright (c) 2014 Manuel Martínez-Almeida Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,...
The MIT License (MIT) Copyright (c) 2014 Manuel Martínez-Almeida Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./utils_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "encoding/xml" "fmt" "net/http" "testing" "github.com/stretchr/testify/assert" ) func init() { SetMode(TestMode) }...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "encoding/xml" "fmt" "net/http" "testing" "github.com/stretchr/testify/assert" ) func init() { SetMode(TestMode) }...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./binding/uri.go
// Copyright 2018 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding type uriBinding struct{} func (uriBinding) Name() string { return "uri" } func (uriBinding) BindUri(m map[string][]string, obj any) error { ...
// Copyright 2018 Gin Core Team. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding type uriBinding struct{} func (uriBinding) Name() string { return "uri" } func (uriBinding) BindUri(m map[string][]string, obj any) error { ...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./context_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "context" "errors" "fmt" "html/template" "io" "mime/multipart" "net" "net/http" "net/http/httptest" "net/url" "...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "context" "errors" "fmt" "html/template" "io" "mime/multipart" "net" "net/http" "net/http/httptest" "net/url" "...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./binding/binding.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !nomsgpack // +build !nomsgpack package binding import "net/http" // Content-Type MIME of the most common data formats. const ( MIMEJSON ...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !nomsgpack // +build !nomsgpack package binding import "net/http" // Content-Type MIME of the most common data formats. const ( MIMEJSON ...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./response_writer.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bufio" "io" "net" "net/http" ) const ( noWritten = -1 defaultStatus = http.StatusOK ) // ResponseWriter ... type Respo...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bufio" "io" "net" "net/http" ) const ( noWritten = -1 defaultStatus = http.StatusOK ) // ResponseWriter ... type Respo...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./routergroup_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "net/http" "testing" "github.com/stretchr/testify/assert" ) func init() { SetMode(TestMode) } func TestRouterGroupBasic(t *t...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "net/http" "testing" "github.com/stretchr/testify/assert" ) func init() { SetMode(TestMode) } func TestRouterGroupBasic(t *t...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./.git/hooks/prepare-commit-msg.sample
#!/bin/sh # # An example hook script to prepare the commit log message. # Called by "git commit" with the name of the file that has the # commit message, followed by the description of the commit # message's source. The hook's purpose is to edit the commit # message file. If the hook fails with a non-zero status, # t...
#!/bin/sh # # An example hook script to prepare the commit log message. # Called by "git commit" with the name of the file that has the # commit message, followed by the description of the commit # message's source. The hook's purpose is to edit the commit # message file. If the hook fails with a non-zero status, # t...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./binding/msgpack.go
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !nomsgpack // +build !nomsgpack package binding import ( "bytes" "io" "net/http" "github.com/ugorji/go/codec" ) type msgpackBinding st...
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. //go:build !nomsgpack // +build !nomsgpack package binding import ( "bytes" "io" "net/http" "github.com/ugorji/go/codec" ) type msgpackBinding st...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./githubapi_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "fmt" "math/rand" "net/http" "net/http/httptest" "os" "testing" "github.com/stretchr/testify/assert" ) type route...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "fmt" "math/rand" "net/http" "net/http/httptest" "os" "testing" "github.com/stretchr/testify/assert" ) type route...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./recovery.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "errors" "fmt" "io" "io/ioutil" "log" "net" "net/http" "net/http/httputil" "os" "runtime" "strings" "time" ) ...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "errors" "fmt" "io" "io/ioutil" "log" "net" "net/http" "net/http/httputil" "os" "runtime" "strings" "time" ) ...
-1
gin-gonic/gin
3,184
feat: add sonic json support
Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
Rainshaw
2022-06-09T10:28:19Z
2022-08-02T02:20:59Z
79dd72deb9edd7120bd0eda36e99f9bfb712d818
8374ed2268e39c1033f6f3dc5c794b399285f164
feat: add sonic json support. Introduce a new drop-in json enhancement: [sonic](https://github.com/bytedance/sonic).
./.git/hooks/applypatch-msg.sample
#!/bin/sh # # An example hook script to check the commit log message taken by # applypatch from an e-mail message. # # The hook should exit with non-zero status after issuing an # appropriate message if it wants to stop the commit. The hook is # allowed to edit the commit message file. # # To enable this hook, rename ...
#!/bin/sh # # An example hook script to check the commit log message taken by # applypatch from an e-mail message. # # The hook should exit with non-zero status after issuing an # appropriate message if it wants to stop the commit. The hook is # allowed to edit the commit message file. # # To enable this hook, rename ...
-1
gin-gonic/gin
3,172
feat(context): add ContextWithFallback feature flag (#3166)
due to breaking change in https://github.com/gin-gonic/gin/issues/3166
wei840222
2022-06-02T03:50:58Z
2022-06-06T10:43:53Z
92ba8e17aae5103b98cd6b87a300b33d31716a87
f197a8bae0c87e1b7cc2e32e399a40665a82f077
feat(context): add ContextWithFallback feature flag (#3166). due to breaking change in https://github.com/gin-gonic/gin/issues/3166
./context.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "errors" "io" "io/ioutil" "log" "math" "mime/multipart" "net" "net/http" "net/url" "os" "strings" "sync" "time" "git...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "errors" "io" "io/ioutil" "log" "math" "mime/multipart" "net" "net/http" "net/url" "os" "strings" "sync" "time" "git...
1
gin-gonic/gin
3,172
feat(context): add ContextWithFallback feature flag (#3166)
due to breaking change in https://github.com/gin-gonic/gin/issues/3166
wei840222
2022-06-02T03:50:58Z
2022-06-06T10:43:53Z
92ba8e17aae5103b98cd6b87a300b33d31716a87
f197a8bae0c87e1b7cc2e32e399a40665a82f077
feat(context): add ContextWithFallback feature flag (#3166). due to breaking change in https://github.com/gin-gonic/gin/issues/3166
./context_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "context" "errors" "fmt" "html/template" "io" "mime/multipart" "net" "net/http" "net/http/httptest" "net/url" "...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "bytes" "context" "errors" "fmt" "html/template" "io" "mime/multipart" "net" "net/http" "net/http/httptest" "net/url" "...
1
gin-gonic/gin
3,172
feat(context): add ContextWithFallback feature flag (#3166)
due to breaking change in https://github.com/gin-gonic/gin/issues/3166
wei840222
2022-06-02T03:50:58Z
2022-06-06T10:43:53Z
92ba8e17aae5103b98cd6b87a300b33d31716a87
f197a8bae0c87e1b7cc2e32e399a40665a82f077
feat(context): add ContextWithFallback feature flag (#3166). due to breaking change in https://github.com/gin-gonic/gin/issues/3166
./gin.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "fmt" "html/template" "net" "net/http" "os" "path" "strings" "sync" "github.com/gin-gonic/gin/internal/bytesconv" "githu...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "fmt" "html/template" "net" "net/http" "os" "path" "strings" "sync" "github.com/gin-gonic/gin/internal/bytesconv" "githu...
1
gin-gonic/gin
3,172
feat(context): add ContextWithFallback feature flag (#3166)
due to breaking change in https://github.com/gin-gonic/gin/issues/3166
wei840222
2022-06-02T03:50:58Z
2022-06-06T10:43:53Z
92ba8e17aae5103b98cd6b87a300b33d31716a87
f197a8bae0c87e1b7cc2e32e399a40665a82f077
feat(context): add ContextWithFallback feature flag (#3166). due to breaking change in https://github.com/gin-gonic/gin/issues/3166
./middleware_test.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "errors" "net/http" "strings" "testing" "github.com/gin-contrib/sse" "github.com/stretchr/testify/assert" ) func TestMiddle...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package gin import ( "errors" "net/http" "strings" "testing" "github.com/gin-contrib/sse" "github.com/stretchr/testify/assert" ) func TestMiddle...
-1
gin-gonic/gin
3,172
feat(context): add ContextWithFallback feature flag (#3166)
due to breaking change in https://github.com/gin-gonic/gin/issues/3166
wei840222
2022-06-02T03:50:58Z
2022-06-06T10:43:53Z
92ba8e17aae5103b98cd6b87a300b33d31716a87
f197a8bae0c87e1b7cc2e32e399a40665a82f077
feat(context): add ContextWithFallback feature flag (#3166). due to breaking change in https://github.com/gin-gonic/gin/issues/3166
./binding/query.go
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import "net/http" type queryBinding struct{} func (queryBinding) Name() string { return "query" } func (queryBinding) Bind(req *http...
// Copyright 2017 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package binding import "net/http" type queryBinding struct{} func (queryBinding) Name() string { return "query" } func (queryBinding) Bind(req *http...
-1
gin-gonic/gin
3,172
feat(context): add ContextWithFallback feature flag (#3166)
due to breaking change in https://github.com/gin-gonic/gin/issues/3166
wei840222
2022-06-02T03:50:58Z
2022-06-06T10:43:53Z
92ba8e17aae5103b98cd6b87a300b33d31716a87
f197a8bae0c87e1b7cc2e32e399a40665a82f077
feat(context): add ContextWithFallback feature flag (#3166). due to breaking change in https://github.com/gin-gonic/gin/issues/3166
./render/xml.go
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import ( "encoding/xml" "net/http" ) // XML contains the given interface object. type XML struct { Data any } var xmlContentType = [...
// Copyright 2014 Manu Martinez-Almeida. All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package render import ( "encoding/xml" "net/http" ) // XML contains the given interface object. type XML struct { Data any } var xmlContentType = [...
-1