-
-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
629 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
run: | ||
deadline: 30s | ||
tests: false | ||
skip-dirs-use-default: true | ||
skip-dirs: | ||
- test | ||
|
||
linters-settings: | ||
gofmt: | ||
simplify: true | ||
govet: | ||
check-shadowing: true | ||
goimports: | ||
local-prefixes: gorm.io,gorm.io/gen | ||
unused: | ||
check-exported: false | ||
revive: | ||
min-confidence: 0.8 | ||
|
||
linters: | ||
presets: | ||
- unused | ||
enable: | ||
- govet | ||
- revive | ||
- bodyclose | ||
- errcheck | ||
- exportloopref | ||
- staticcheck | ||
disable: | ||
- gofumpt | ||
|
||
issues: | ||
exclude-use-default: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,54 @@ | ||
package field | ||
|
||
// Bool boolean type field | ||
type Bool Field | ||
|
||
// Not ... | ||
func (field Bool) Not() Bool { | ||
return Bool{field.not()} | ||
} | ||
|
||
// Is ... | ||
func (field Bool) Is(value bool) Expr { | ||
return field.is(value) | ||
} | ||
|
||
// And boolean and | ||
func (field Bool) And(value bool) Expr { | ||
return Bool{field.and(value)} | ||
} | ||
|
||
// Or boolean or | ||
func (field Bool) Or(value bool) Expr { | ||
return Bool{field.or(value)} | ||
} | ||
|
||
// Xor ... | ||
func (field Bool) Xor(value bool) Expr { | ||
return Bool{field.xor(value)} | ||
} | ||
|
||
// BitXor ... | ||
func (field Bool) BitXor(value bool) Expr { | ||
return Bool{field.bitXor(value)} | ||
} | ||
|
||
// BitAnd ... | ||
func (field Bool) BitAnd(value bool) Expr { | ||
return Bool{field.bitAnd(value)} | ||
} | ||
|
||
// BitOr ... | ||
func (field Bool) BitOr(value bool) Expr { | ||
return Bool{field.bitOr(value)} | ||
} | ||
|
||
// Value ... | ||
func (field Bool) Value(value bool) AssignExpr { | ||
return field.value(value) | ||
} | ||
|
||
// Zero ... | ||
func (field Bool) Zero() AssignExpr { | ||
return field.value(false) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// package field implement all type field and method | ||
// Package field implement all type field and method | ||
package field |
Oops, something went wrong.