diff --git a/config/statement.go b/config/statement.go index e92c752..f40d7ac 100644 --- a/config/statement.go +++ b/config/statement.go @@ -21,19 +21,23 @@ type IDirective interface { InlineCommenter } +// InlineCommenter represents the inline comment holder type InlineCommenter interface { GetInlineComment() string SetInlineComment(comment string) } +// DefaultInlineComment represents the default inline comment holder type DefaultInlineComment struct { InlineComment string } +// GetInlineComment returns the inline comment func (d *DefaultInlineComment) GetInlineComment() string { return d.InlineComment } +// SetInlineComment sets the inline comment func (d *DefaultInlineComment) SetInlineComment(comment string) { d.InlineComment = comment }