package main

import (
	"fmt"
	"mime"
	"strings"
)

func main() {
	fmt.Println(strings.SplitN(mime.TypeByExtension(".avi"), "/", 2)[0])
}

package main

import (
	"../dlna/dms"
	"flag"
	"fmt"
)

func main() {
	flag.Parse()
	for _, arg := range flag.Args() {
		fmt.Println(dms.MimeTypeByPath(arg))
	}
}

Update the play file for testing dms.MimeTypeByPath
Update the play file for testing dms.MimeTypeByPath
