16 lines
195 B
Go
16 lines
195 B
Go
|
package comment
|
||
|
|
||
|
type DocComment struct {
|
||
|
value string
|
||
|
}
|
||
|
|
||
|
func NewDocComment(value string) Comment {
|
||
|
return &DocComment{
|
||
|
value,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (c *DocComment) String() string {
|
||
|
return c.value
|
||
|
}
|