bou.ke/statictemplate@v0.0.0-20180821122055-510411a5e7dd/statictemplate/constant_writer_to.go (about) 1 package statictemplate 2 3 import ( 4 "io" 5 ) 6 7 type constantWriterTo string 8 9 func (c constantWriterTo) WriteTo(w io.Writer) (int64, error) { 10 n, err := io.WriteString(w, string(c)) 11 return int64(n), err 12 }