ziutek / rrd

Bindings to rrdtool
Other
147 stars 44 forks source link

how to use the func (g *Grapher) Comment(s string) #17

Closed canghai908 closed 9 years ago

canghai908 commented 9 years ago

I use the func (g *Grapher) Comment(s string),but i found it not have wrap,I use g.Comment("\n") have no wrap,how can i do? I see the rrdtool sites is "/n".

ziutek commented 9 years ago

I don't know. rrd is only tiny wrapper over librrd. You probably should study rrdtool documentation or ask question on some rrdtool related forum.

omani commented 6 years ago

you need to escape the backlash in go.

try:

g.Comment("\\n")
canghai908 commented 6 years ago

@omani Thanky you,I will try。