//first method : slice = nil // second method : slice = slice[0:0]Source page : https://www.socketloop.com/tutorials/golang-clearing-slice