code: func TrytesToInt(t Trytes) int64 {
  	var val int64
  
  	for i := len(t) - 1; i >= 0; i-- {
  		idx := strings.Index(TryteAlphabet, string(t[i]))
  		if idx > 13 {
  			idx = idx - 27
  		}
  		val = val*27 + int64(idx)
  	}
  	return val
  }
docs: // TrytesToInt converts a slice of trytes to int64.