Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for clearMimeTypes (0.22 sec)

  1. src/mime/type_test.go

    	"sync"
    	"testing"
    )
    
    func setMimeInit(fn func()) (cleanup func()) {
    	once = sync.Once{}
    	testInitMime = fn
    	return func() {
    		testInitMime = nil
    		once = sync.Once{}
    	}
    }
    
    func clearMimeTypes() {
    	setMimeTypes(map[string]string{}, map[string]string{})
    }
    
    func setType(ext, typ string) {
    	if !strings.HasPrefix(ext, ".") {
    		panic("missing leading dot")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 08 21:09:03 UTC 2022
    - 4.9K bytes
    - Viewed (0)
Back to top