How to do date/time comparison
Use the time package to work with time information in Go. Time instants can be compared using the Before, After, and Equal methods. The Sub method subtracts two instants, producing a Duration. The Add method adds a Time and a Duration, producing a Time. Play example: package main import ( “fmt” “time” ) func inTimeSpan(start, … Read more