Upgrade to Go 1.18

Edited by Paul Bryant