mirror of
https://github.com/ent/ent.git
synced 2026-05-06 01:20:56 +03:00
all: fix linting errors for comments (#990)
* fix: linting errors for comments * fix: one more comment
This commit is contained in:
committed by
GitHub
parent
ac8e8dac83
commit
42fa731f39
@@ -1165,10 +1165,12 @@ func (p *Predicate) ContainsFold(col, sub string) *Predicate {
|
||||
})
|
||||
}
|
||||
|
||||
// CompositeGT returns a comiposite ">" predicate
|
||||
func CompositeGT(columns []string, args ...interface{}) *Predicate {
|
||||
return P().CompositeGT(columns, args...)
|
||||
}
|
||||
|
||||
// CompositeLT returns a comiposite "<" predicate
|
||||
func CompositeLT(columns []string, args ...interface{}) *Predicate {
|
||||
return P().CompositeLT(columns, args...)
|
||||
}
|
||||
@@ -1185,13 +1187,13 @@ func (p *Predicate) compositeP(operator string, columns []string, args ...interf
|
||||
})
|
||||
}
|
||||
|
||||
// GT returns a composite ">" predicate.
|
||||
// CompositeGT returns a composite ">" predicate.
|
||||
func (p *Predicate) CompositeGT(columns []string, args ...interface{}) *Predicate {
|
||||
const operator = " > "
|
||||
return p.compositeP(operator, columns, args...)
|
||||
}
|
||||
|
||||
// LT appends a composite "<" predicate.
|
||||
// CompositeLT appends a composite "<" predicate.
|
||||
func (p *Predicate) CompositeLT(columns []string, args ...interface{}) *Predicate {
|
||||
const operator = " < "
|
||||
return p.compositeP(operator, columns, args...)
|
||||
@@ -2018,6 +2020,7 @@ func (b *Builder) Err() error {
|
||||
// An Op represents a predicate operator.
|
||||
type Op int
|
||||
|
||||
// Predicate operators
|
||||
const (
|
||||
OpEQ Op = iota // logical and.
|
||||
OpNEQ // <>
|
||||
|
||||
@@ -41,7 +41,7 @@ type (
|
||||
}
|
||||
)
|
||||
|
||||
// AddEdge adds an edge to the graph. It fails, if one of the node
|
||||
// AddE adds an edge to the graph. It fails, if one of the node
|
||||
// types is missing.
|
||||
//
|
||||
// g.AddE("pets", spec, "user", "pet")
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This source code is licensed under the Apache 2.0 license found
|
||||
// in the LICENSE file in the root directory of this source tree.
|
||||
|
||||
// sqlgraph provides graph abstraction capabilities on top
|
||||
// Package sqlgraph provides graph abstraction capabilities on top
|
||||
// of sql-based databases for ent codegen.
|
||||
package sqlgraph
|
||||
|
||||
|
||||
Reference in New Issue
Block a user