Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Index (0.2 sec)

  1. schema/utils.go

    				switch result.Kind() {
    				case reflect.Struct:
    					reflectResults = reflect.Append(reflectResults, result.Addr())
    				case reflect.Slice, reflect.Array:
    					for i := 0; i < result.Len(); i++ {
    						if elem := result.Index(i); elem.Kind() == reflect.Ptr {
    							reflectResults = reflect.Append(reflectResults, elem)
    						} else {
    							reflectResults = reflect.Append(reflectResults, elem.Addr())
    						}
    					}
    				}
    			}
    		}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Aug 19 13:35:14 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  2. cmd/utils.go

    func path2BucketObjectWithBasePath(basePath, path string) (bucket, prefix string) {
    	path = strings.TrimPrefix(path, basePath)
    	path = strings.TrimPrefix(path, SlashSeparator)
    	m := strings.Index(path, SlashSeparator)
    	if m < 0 {
    		return path, ""
    	}
    	return path[:m], path[m+len(SlashSeparator):]
    }
    
    func path2BucketObject(s string) (bucket, prefix string) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top