code: func TrailingZeros(trits Trits) int64 {
  	z := int64(0)
  	for i := len(trits) - 1; i >= 0 && trits[i] == 0; i-- {
  		z++
  	}
  	return z
  }
docs: // TrailingZeros returns the number of trailing zeros of the given trits.