diff --git a/DONATOR.MD b/DONATOR.MD index 741ff45d0..6a9aa30e6 100644 --- a/DONATOR.MD +++ b/DONATOR.MD @@ -15,6 +15,7 @@ |潘兄|wechat|¥100.00 |Fly的狐狸|wechat|¥100.00 |土豆相公|alipay|¥66.60 +|蔡蔡|wechat|¥666.00 |上海金保证网络科技|bank|¥2000.00 diff --git a/README.MD b/README.MD index 2b8740977..f34bcffe6 100644 --- a/README.MD +++ b/README.MD @@ -1,44 +1,58 @@ -# GoFrame +# GoFrame
-[](https://godoc.org/github.com/gogf/gf/g#pkg-subdirectories)
-[](https://travis-ci.org/gogf/gf)
+[](https://godoc.org/github.com/gogf/gf/g#pkg-subdirectories)
+[](https://travis-ci.org/gogf/gf)
+[](https://goreportcard.com/report/github.com/gogf/gf)
[](https://codecov.io/gh/gogf/gf/branch/master)
[](https://github.com/gogf/gf)
[](https://github.com/gogf/gf)
-
-
-
+# 协议
+`GF` 使用非常友好的 [MIT](LICENSE) 开源协议进行发布,永久`100%`开源免费。
+# 捐赠
+如果您喜欢`GF`,要不[给开发者来杯咖啡吧](DONATOR.MD)!
+请在捐赠时备注您的`github`/`gitee`账号名称。
+# 感谢
+
\ No newline at end of file
diff --git a/g/container/garray/garray.go b/g/container/garray/garray.go
index 35f367894..d1ca55d5e 100644
--- a/g/container/garray/garray.go
+++ b/g/container/garray/garray.go
@@ -6,4 +6,3 @@
// Package garray provides concurrent-safe/unsafe arrays.
package garray
-
diff --git a/g/container/garray/garray_func.go b/g/container/garray/garray_func.go
index 7366269d5..ed6ba8a11 100644
--- a/g/container/garray/garray_func.go
+++ b/g/container/garray/garray_func.go
@@ -7,13 +7,13 @@
package garray
type apiSliceInterface interface {
- Slice() []interface{}
+ Slice() []interface{}
}
type apiSliceInt interface {
- Slice() []int
+ Slice() []int
}
type apiSliceString interface {
- Slice() []string
-}
\ No newline at end of file
+ Slice() []string
+}
diff --git a/g/container/garray/garray_normal_int.go b/g/container/garray/garray_normal_int.go
index 21636b16b..2be98a810 100644
--- a/g/container/garray/garray_normal_int.go
+++ b/g/container/garray/garray_normal_int.go
@@ -7,13 +7,13 @@
package garray
import (
- "bytes"
+ "bytes"
"fmt"
"github.com/gogf/gf/g/internal/rwmutex"
- "github.com/gogf/gf/g/util/gconv"
- "github.com/gogf/gf/g/util/grand"
- "math"
- "sort"
+ "github.com/gogf/gf/g/util/gconv"
+ "github.com/gogf/gf/g/util/grand"
+ "math"
+ "sort"
)
type IntArray struct {
@@ -24,40 +24,40 @@ type IntArray struct {
// NewIntArray creates and returns an empty array.
// The parameter is not an element of , the list is not modified.
// The element and must not be nil.
func (l *List) MoveBefore(e, p *Element) {
- l.mu.Lock()
- l.list.MoveBefore(e, p)
- l.mu.Unlock()
+ l.mu.Lock()
+ l.list.MoveBefore(e, p)
+ l.mu.Unlock()
}
// MoveAfter moves element .
// If is not an element of , the list is not modified.
// The element and must not be nil.
func (l *List) MoveAfter(e, p *Element) {
- l.mu.Lock()
- l.list.MoveAfter(e, p)
- l.mu.Unlock()
+ l.mu.Lock()
+ l.list.MoveAfter(e, p)
+ l.mu.Unlock()
}
// MoveToFront moves element and returns is not an element of must not be nil.
func (l *List) InsertAfter(v interface{}, p *Element) (e *Element) {
- l.mu.Lock()
- e = l.list.InsertAfter(v, p)
- l.mu.Unlock()
- return
+ l.mu.Lock()
+ e = l.list.InsertAfter(v, p)
+ l.mu.Unlock()
+ return
}
// InsertBefore inserts a new element and returns is not an element of must not be nil.
func (l *List) InsertBefore(v interface{}, p *Element) (e *Element) {
- l.mu.Lock()
- e = l.list.InsertBefore(v, p)
- l.mu.Unlock()
- return
+ l.mu.Lock()
+ e = l.list.InsertBefore(v, p)
+ l.mu.Unlock()
+ return
}
// Remove removes