Skip to content

Commit e7c4ee2

Browse files
committed
chore(binding): Copy the gjson source code into the module #62
Change-Id: I3ba856a4d9c207179170b8c23af14d87d63fdd43
1 parent e47d0b9 commit e7c4ee2

File tree

6 files changed

+2923
-7
lines changed

6 files changed

+2923
-7
lines changed

binding/gjson/gjson.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ import (
3131

3232
"github.com/andeya/ameda"
3333
"github.com/andeya/goutil"
34-
"github.com/tidwall/gjson"
35-
3634
"github.com/bytedance/go-tagexpr/v2/binding"
3735
"github.com/bytedance/go-tagexpr/v2/binding/gjson/internal/caching"
3836
"github.com/bytedance/go-tagexpr/v2/binding/gjson/internal/rt"
37+
gjson "github.com/bytedance/go-tagexpr/v2/binding/tidwall_gjson"
3938
)
4039

4140
var (

binding/param_info.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ import (
1212
"strings"
1313

1414
"github.com/andeya/ameda"
15-
"github.com/tidwall/gjson"
16-
1715
"github.com/bytedance/go-tagexpr/v2"
16+
gjson "github.com/bytedance/go-tagexpr/v2/binding/tidwall_gjson"
1817
)
1918

2019
const (

binding/tidwall_gjson/LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Josh Baker
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)