func mime.TypeByExtension
4 uses
mime (current package)
type.go#L108: func TypeByExtension(ext string) string {
github.com/evanw/esbuild/internal/bundler
bundler.go#L509: mimeType := mime.TypeByExtension(extension)
github.com/evanw/esbuild/pkg/api
serve_other.go#L236: if contentType := mime.TypeByExtension(path.Ext(queryPath)); contentType != "" {
net/http
fs.go#L235: ctype = mime.TypeByExtension(filepath.Ext(name))
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |