Implement build conditions

This commit is contained in:
Jinzhu
2020-01-30 03:03:06 +08:00
parent b9cce2be6a
commit 85bfd175c6
5 changed files with 154 additions and 15 deletions
+5
View File
@@ -11,6 +11,11 @@ type BuilderInterface interface {
// Interface clause interface
type Interface interface {
Name() string
Builder
}
// Builder condition builder
type Builder interface {
Build(builder BuilderInterface)
}