Skip to content

Commit

Permalink
Fix: Add a 'min' function to work with go1.18.1, the default on Ubunt…
Browse files Browse the repository at this point in the history
…u 22.04. (#54)
  • Loading branch information
olawlor authored May 22, 2024
1 parent c4cf4bf commit c3d29c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions utility/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c3d29c7

Please sign in to comment.