You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
371 B
19 lines
371 B
package pushurl
|
|
|
|
import (
|
|
"net/url"
|
|
"strings"
|
|
)
|
|
|
|
const (
|
|
frameFormatParam = "gf_live_frame_format"
|
|
)
|
|
|
|
// FrameFormatFromValues extracts frame format tip from url values.
|
|
func FrameFormatFromValues(values url.Values) string {
|
|
frameFormat := strings.ToLower(values.Get(frameFormatParam))
|
|
if frameFormat == "" {
|
|
frameFormat = "labels_column"
|
|
}
|
|
return frameFormat
|
|
}
|
|
|