📅  最后修改于: 2022-03-11 14:45:02.793000             🧑  作者: Mango
This can be achieved by putting a init() function in the myfile_test.go file. This will be run before the init() function.
// myfile_test.go
package main
func init() {
/* load test data */
}
The myfile_test.init() will be called before the package init() function.