feat: 修改 nginx util 增加空行处理
This commit is contained in:
committed by
zhengkunwang223
parent
cd9bd9940c
commit
5b63dc42a2
@@ -3,10 +3,10 @@ package components
|
||||
type IBlock interface {
|
||||
GetDirectives() []IDirective
|
||||
FindDirectives(directiveName string) []IDirective
|
||||
UpdateDirectives(directiveName string, directive Directive)
|
||||
AddDirectives(directive Directive)
|
||||
RemoveDirectives(names []string)
|
||||
RemoveDirective(name string, params []string)
|
||||
UpdateDirective(name string, params []string)
|
||||
GetComment() string
|
||||
GetLine() int
|
||||
}
|
||||
|
||||
type IDirective interface {
|
||||
@@ -14,12 +14,5 @@ type IDirective interface {
|
||||
GetParameters() []string
|
||||
GetBlock() IBlock
|
||||
GetComment() string
|
||||
}
|
||||
|
||||
type FileDirective interface {
|
||||
isFileDirective()
|
||||
}
|
||||
|
||||
type IncludeDirective interface {
|
||||
FileDirective
|
||||
GetLine() int
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user