feat: 修改 nginx util 增加空行处理

This commit is contained in:
zhengkunwang223
2022-11-30 17:33:30 +08:00
committed by zhengkunwang223
parent cd9bd9940c
commit 5b63dc42a2
12 changed files with 294 additions and 210 deletions

View File

@@ -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
}