You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package producer
|
|
|
|
import (
|
|
"joybuywork/internal/consts"
|
|
|
|
"github.com/Shopify/sarama"
|
|
)
|
|
|
|
func SetHeaderLang(langMark string) sarama.RecordHeader {
|
|
return sarama.RecordHeader{
|
|
Key: []byte(consts.XLangKey),
|
|
Value: []byte(langMark),
|
|
}
|
|
}
|