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
// $ time go run go_parallel.go | |
package main | |
func main() { | |
size := 4 | |
digits := make([]int, 1000000) | |
ch := make(chan []int) | |
for i := 0; i < len(digits); i += size { |
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 data | |
import ( | |
"database/sql" | |
"golang-test-sample/dip/service" | |
) | |
type UserRepositoryImpl struct { | |
DB *sql.DB | |
} |
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 data | |
import ( | |
"database/sql" | |
) | |
type UserRepositoryImpl struct { | |
DB *sql.DB | |
} |