Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for setMimeInit (0.1 sec)

  1. src/mime/type_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package mime
    
    import (
    	"reflect"
    	"strings"
    	"sync"
    	"testing"
    )
    
    func setMimeInit(fn func()) (cleanup func()) {
    	once = sync.Once{}
    	testInitMime = fn
    	return func() {
    		testInitMime = nil
    		once = sync.Once{}
    	}
    }
    
    func clearMimeTypes() {
    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