示例#1
0
func (k Keys) ApplyToHeader(h *lob.Header) {
	for csid, v := range k {
		h.Set(hex.EncodeToString([]byte{csid}), v.String())
	}
}
示例#2
0
func (p Parts) ApplyToHeader(h *lob.Header) {
	for k, v := range p {
		h.Set(hex.EncodeToString([]byte{k}), v)
	}
}