multini/internal/types/comment.go
2020-11-03 10:47:19 +03:00

27 lines
398 B
Go

package types
type Comment struct {
Prefix string
Value string
}
func (obj *Comment) Full() string {
return obj.Prefix + obj.Value
}
func (obj *Comment) Line() string {
return obj.Prefix + obj.Value
}
func (obj *Comment) Fulln() string {
return obj.Full() + endOfLine
}
func (obj *Comment) Type() TElement {
return TComment
}
func (obj *Comment) Indent() string {
return obj.Prefix
}