This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialise the module | |
$ go mod init <module_name> // ex : github.com/gnsalok/ps-go | |
// If you import any package, you can run the below command to get modules, and it will add a module under the go.mod file | |
$go mod tidy | |
// To verify why other dependencies are in the go.sum file. | |
$ go mod why -m <module_name> // ex : github.com/gorilla/websocket | |
// Get a specific version of a package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package benchamarking | |
import ( | |
"testing" | |
) | |
type MyStruct struct { | |
Value int | |
} |