code: func IntToTrits(value int64) Trits {
  	if value == 0 {
  		return Trits{0}
  	}
  
  	negative := value < 0
  	size := MinTrits(value)
  	valueAbs := MustAbsInt64(value)
  
  	t := make(Trits, size)
  
  	for i := 0; i < int(size); i++ {
  		if valueAbs == 0 {
  			break
  		}
  		trit := int8((valueAbs+1)%(TrinaryRadix) - 1)
  		if negative {
  			trit = -trit
  		}
  		t[i] = trit
  		valueAbs++
  		valueAbs /= TrinaryRadix
  	}
  
  	return t
  }
docs: // IntToTrits converts int64 to a slice of trits.