diff --git a/utility/application.go b/utility/application.go index 6c4682e..46a7187 100644 --- a/utility/application.go +++ b/utility/application.go @@ -13,6 +13,13 @@ const ( SAMPLE = 10240 ) +func min(a, b int) int { + if a < b { + return a + } + return b +} + func SendMessage(input string, client string) { conn, err := net.Dial(CONN_TYPE, client) if err != nil {