Go-based FM stereo transmitter with RDS, Windows-first and cross-platform
25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- 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
- }
|