FAQ

On Thu, Nov 6, 2014 at 9:57 AM, Hoai Ninh wrote:

Thank for all your help

It's ok to use the filepath.Ext() then using strings package to indicate
file type
You can use DetectContentType to determine the mime type:
http://golang.org/pkg/net/http/#DetectContentType

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 5 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedNov 6, '14 at 2:38p
activeNov 6, '14 at 4:37p
posts5
users3
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase