Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getItemCount (0.09 sec)

  1. internal/store/store.go

    	if k.ItemCount > 1 {
    		keyStr = fmt.Sprintf("%d:%s", k.ItemCount, k.Name)
    	}
    	return keyStr + k.Extension + func() string {
    		if k.Compress {
    			return compressExt
    		}
    		return ""
    	}()
    }
    
    func getItemCount(k string) (count int, err error) {
    	count = 1
    	v := strings.Split(k, ":")
    	if len(v) == 2 {
    		return strconv.Atoi(v[0])
    	}
    	return
    }
    
    func parseKey(k string) (key Key) {
    	key.Name = k
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top