2018-01-02 22:12:28 +00:00
|
|
|
package comment
|
|
|
|
|
2018-01-12 06:23:58 +00:00
|
|
|
// DocComment represents comments that start /**
|
2018-01-02 22:12:28 +00:00
|
|
|
type DocComment struct {
|
|
|
|
value string
|
|
|
|
}
|
|
|
|
|
2018-01-12 06:23:58 +00:00
|
|
|
// NewDocComment - DocComment constructor
|
2018-01-08 19:50:39 +00:00
|
|
|
func NewDocComment(value string) *DocComment {
|
2018-01-02 22:12:28 +00:00
|
|
|
return &DocComment{
|
|
|
|
value,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *DocComment) String() string {
|
|
|
|
return c.value
|
|
|
|
}
|