20 lines
270 B
Go
20 lines
270 B
Go
|
|
package main
|
||
|
|
|
||
|
|
import (
|
||
|
|
"fmt"
|
||
|
|
"log"
|
||
|
|
"net/http"
|
||
|
|
"./config"
|
||
|
|
"./playlist"
|
||
|
|
"./www"
|
||
|
|
)
|
||
|
|
|
||
|
|
var pln = fmt.Println
|
||
|
|
|
||
|
|
func main() {
|
||
|
|
config.Loadconfig("config.ini")
|
||
|
|
p, _ := playlist.MakeRandom("YOYO", 10)
|
||
|
|
p.Pop()
|
||
|
|
www.Init(p)
|
||
|
|
log.Fatal(http.ListenAndServe(":8718", nil))
|
||
|
|
}
|