Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for validUserType (0.17 sec)

  1. src/encoding/gob/type.go

    )
    
    var userTypeCache sync.Map // map[reflect.Type]*userTypeInfo
    
    // validUserType returns, and saves, the information associated with user-provided type rt.
    // If the user type is not valid, err will be non-nil. To be used when the error handler
    // is not set up.
    func validUserType(rt reflect.Type) (*userTypeInfo, error) {
    	if ui, ok := userTypeCache.Load(rt); ok {
    		return ui.(*userTypeInfo), nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
Back to top