code: func writeAny(w io.Writer, html bool, x interface{}) {
  	switch v := x.(type) {
  	case []byte:
  		writeText(w, v, html)
  	case string:
  		writeText(w, []byte(v), html)
  	default:
  		if html {
  			var buf bytes.Buffer
  			fmt.Fprint(&buf, x)
  			writeText(w, buf.Bytes(), true)
  		} else {
  			fmt.Fprint(w, x)
  		}
  	}
  }
docs: // Write anything to w; optionally html-escaped.