Tag：Go language time operation

Time-related operations in golang mainly use the function of time package, and time. Time is the main object in time. 1. Get the current time (1) CurrtTime:= time.Now() // Get the current time, the time type of Go, Time (2) T1: = time. Now (). Year ()// yearT2: = time. Now (). Month ()// […]