multini/internal/types/comment.go

27 lines
398 B
Go
Raw Permalink Normal View History

2020-04-25 23:42:14 +00:00
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
}