func (c *ClientWriter) WriteHeader(pkg, version string, needTime, needJSON bool, w io.Writer) error {
	ctx := map[string]interface{}{
		"Pkg":        pkg,
		"APIVersion": version,
		"NeedTime":   needTime,
		"NeedJSON":   needJSON,
	}
	return c.headerTmpl.Execute(w, ctx)
}
func (c *ClientWriter) WriteHeader(pkg, version string, needTime, needJSON bool, w io.Writer) error {
	ctx := map[string]interface{}{
		"Pkg":        pkg,
		"APIVersion": version,
		"NeedTime":   needTime,
		"NeedJSON":   needJSON,
	}
	return c.headerTmpl.Execute(w, ctx)
}
// WriteHeader writes the header text.