GO Epoch In Go, We can produce the time in seconds, milliseconds, nanosecond . The time package has the required methods like…
reflect
-
-
Go Panic Go panic is a mechanism by which we handle error situations. Panic can be used to abort a function execution.…
-
Go Time Go has very good support for the time manipulations. Unix epoch time is used as reference for time manipulations. we…
-
Go Error Go does not have an exception mechanism like try/catch in Java, we cannot throw an exception in Go. Go uses…
-
Go Pointer A pointer is a variable that stores the address of another variable. The general form of a pointer variable declaration…
-
Go File I/O In go os.file objects are used for file manipulations. os.File objects are also called filehandles. open function which is…
-
Go Race A race condition occurs in Go when two or more goroutines try to access the same resource. It may happen…
-
Go Array In Go, an array is a homogeneous data structure (Fix type) and has a fixed-length. The type can be anything…
-
Go for range construct The for range construct is useful in many context. It can be used to traverse every item in…
-
Go Random Number Generation We can generate random number using rand object. We should provide some seeding to rand object so that…