EncodeSource encodes a source ID in base64 for storage.
(source string)
| 711 | |
| 712 | // EncodeSource encodes a source ID in base64 for storage. |
| 713 | func EncodeSource(source string) string { |
| 714 | return base64.StdEncoding.EncodeToString([]byte(source)) |
| 715 | } |
| 716 | |
| 717 | // EncodeValueStr converts a simplified number ("1") to a hex-encoded string |
| 718 | func EncodeValueStr(value string) (string, error) { |
no outgoing calls