feat(Go-Tool):2020/12/14:添加validator.v8源码解析和使用示例

This commit is contained in:
Huangzj
2020-12-14 15:15:58 +08:00
parent 23d7d6e226
commit fa31b23cca
51 changed files with 4619 additions and 1662 deletions
+6 -6
View File
@@ -1,7 +1,7 @@
package linq
// Append inserts an item to the end of a collection, so it becomes the last
// item.
// Append inserts an item to the end of a collection,
// so it becomes the last item.
func (q Query) Append(item interface{}) Query {
return Query{
Iterate: func() Iterator {
@@ -28,8 +28,8 @@ func (q Query) Append(item interface{}) Query {
// Concat concatenates two collections.
//
// The Concat method differs from the Union method because the Concat method
// returns all the original elements in the input sequences. The Union method
// returns only unique elements.
// returns all the original elements in the input sequences.
// The Union method returns only unique elements.
func (q Query) Concat(q2 Query) Query {
return Query{
Iterate: func() Iterator {
@@ -53,8 +53,8 @@ func (q Query) Concat(q2 Query) Query {
}
}
// Prepend inserts an item to the beginning of a collection, so it becomes the
// first item.
// Prepend inserts an item to the beginning of a collection,
// so it becomes the first item.
func (q Query) Prepend(item interface{}) Query {
return Query{
Iterate: func() Iterator {