Bump go version to 1.21

Allows us to use the much faster builtin min/max functions
for two variable min/max
This commit is contained in:
Kovid Goyal
2023-08-09 11:58:16 +05:30
parent f125ffe3e0
commit 49ea26968c
17 changed files with 44 additions and 53 deletions

View File

@@ -105,7 +105,7 @@ func edit_loop(data_to_send string, kill_if_signaled bool, on_data OnDataCallbac
lp.OnInitialize = func() (string, error) {
pos, chunk_num := 0, 0
for {
limit := utils.Min(pos+2048, len(data_to_send))
limit := min(pos+2048, len(data_to_send))
if limit <= pos {
break
}