// Code generated by "inline -o templates.go -p cdr templates/parts.tmpl" -- DO NOT EDIT -- package cdr import ( "fmt" "io/ioutil" ) func ReadAsset(file string, useLocal bool) ([]byte, error) { if useLocal { return ioutil.ReadFile(file) } if f, ok := files[file]; ok { return []byte(f), nil } return nil, fmt.Errorf("file doesn't exist.") } var files = map[string]string{ "templates/parts.tmpl": `{{define "player"}} {{with $x := index . 0}} {{end}}
    {{range $i, $el := .}} {{$el.Artist}} - {{$el.Title}} {{end}}
{{end}} {{define "full-player"}} {{template "player" .}} {{template "playlist-js"}} {{end}} {{define "playlist-js"}} {{end}}`, }