Kaynağa Gözat

Fix uint, uint8, uint16, uint32 and uint64 conversion in ToStringE function.

tags/v1.3.1
K4rian Bjørn Erik Pedersen 4 yıl önce
ebeveyn
işleme
1ffadf5510
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. +5
    -5
      caste.go

+ 5
- 5
caste.go Dosyayı Görüntüle

@@ -819,15 +819,15 @@ func ToStringE(i interface{}) (string, error) {
case int8:
return strconv.FormatInt(int64(s), 10), nil
case uint:
return strconv.FormatInt(int64(s), 10), nil
return strconv.FormatUint(uint64(s), 10), nil
case uint64:
return strconv.FormatInt(int64(s), 10), nil
return strconv.FormatUint(uint64(s), 10), nil
case uint32:
return strconv.FormatInt(int64(s), 10), nil
return strconv.FormatUint(uint64(s), 10), nil
case uint16:
return strconv.FormatInt(int64(s), 10), nil
return strconv.FormatUint(uint64(s), 10), nil
case uint8:
return strconv.FormatInt(int64(s), 10), nil
return strconv.FormatUint(uint64(s), 10), nil
case []byte:
return string(s), nil
case template.HTML:


Yükleniyor…
İptal
Kaydet