mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-16 09:49:07 +08:00
30 lines
444 B
Go
30 lines
444 B
Go
|
package components
|
||
|
|
||
|
type Directive struct {
|
||
|
Line int
|
||
|
Block IBlock
|
||
|
Name string
|
||
|
Comment string
|
||
|
Parameters []string
|
||
|
}
|
||
|
|
||
|
func (d *Directive) GetComment() string {
|
||
|
return d.Comment
|
||
|
}
|
||
|
|
||
|
func (d *Directive) GetName() string {
|
||
|
return d.Name
|
||
|
}
|
||
|
|
||
|
func (d *Directive) GetParameters() []string {
|
||
|
return d.Parameters
|
||
|
}
|
||
|
|
||
|
func (d *Directive) GetBlock() IBlock {
|
||
|
return d.Block
|
||
|
}
|
||
|
|
||
|
func (d *Directive) GetLine() int {
|
||
|
return d.Line
|
||
|
}
|