Go-based FM stereo transmitter with RDS, Windows-first and cross-platform
No puede seleccionar más de 25 temas
Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
|
- package rds
-
- import "strings"
-
- func normalizePS(ps string) string {
- ps = strings.ToUpper(ps)
- if len(ps) > 8 {
- ps = ps[:8]
- }
- if len(ps) < 8 {
- ps = ps + strings.Repeat(" ", 8-len(ps))
- }
- return ps
- }
-
- func normalizeRT(rt string) string {
- if len(rt) > 64 {
- rt = rt[:64]
- }
- return rt
- }
|