MCPcopy
hub / github.com/EverythingSuckz/TG-FileStreamBot / stripInt

Function stripInt

config/config.go:289–298  ·  view source on GitHub ↗
(log *zap.Logger, a int)

Source from the content-addressed store, hash-verified

287}
288
289func stripInt(log *zap.Logger, a int) int {
290 strA := strconv.Itoa(abs(a))
291 lastDigits := strings.Replace(strA, "100", "", 1)
292 result, err := strconv.Atoi(lastDigits)
293 if err != nil {
294 log.Sugar().Fatalln(err)
295 return 0
296 }
297 return result
298}
299
300func abs(x int) int {
301 if x < 0 {

Callers 1

LoadFunction · 0.85

Calls 1

absFunction · 0.85

Tested by

no test coverage detected