mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-21 00:47:11 +08:00
commit
2cbe09195e
5 changed files with 5 additions and 5 deletions
2
go.mod
2
go.mod
|
|
@ -2,4 +2,4 @@ module github.com/teivah/100-go-mistakes
|
||||||
|
|
||||||
go 1.18
|
go 1.18
|
||||||
|
|
||||||
require golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
|
require golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/teivah/100-go-mistakes/02-code-project-organization/3-init-functions/redis"
|
"github.com/teivah/100-go-mistakes/src/02-code-project-organization/3-init-functions/redis"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package client
|
package client
|
||||||
|
|
||||||
import "github.com/teivah/100-go-mistakes/02-code-project-organization/6-interface-producer/store"
|
import "github.com/teivah/100-go-mistakes/src/02-code-project-organization/6-interface-producer/store"
|
||||||
|
|
||||||
type customersGetter interface {
|
type customersGetter interface {
|
||||||
GetAllCustomers() ([]store.Customer, error)
|
GetAllCustomers() ([]store.Customer, error)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/teivah/100-go-mistakes/08-concurrency-foundations/60-contexts/flight"
|
"github.com/teivah/100-go-mistakes/src/08-concurrency-foundations/60-contexts/flight"
|
||||||
)
|
)
|
||||||
|
|
||||||
type publisher interface {
|
type publisher interface {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package counter_test
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
counter "github.com/teivah/100-go-mistakes/11-testing/90-testing-features/different-package"
|
counter "github.com/teivah/100-go-mistakes/src/11-testing/90-testing-features/different-package"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCount(t *testing.T) {
|
func TestCount(t *testing.T) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue