Browse Source

add dependency declaration

Tao Wen 7 years ago
parent
commit
1df9eeb2bb

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/vendor

+ 15 - 0
Gopkg.lock

@@ -0,0 +1,15 @@
+# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
+
+
+[[projects]]
+  name = "github.com/modern-go/concurrent"
+  packages = ["."]
+  revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a"
+  version = "1.0.0"
+
+[solve-meta]
+  analyzer-name = "dep"
+  analyzer-version = 1
+  inputs-digest = "daee8a88b3498b61c5640056665b8b9eea062006f5e596bbb6a3ed9119a11ec7"
+  solver-name = "gps-cdcl"
+  solver-version = 1

+ 35 - 0
Gopkg.toml

@@ -0,0 +1,35 @@
+# Gopkg.toml example
+#
+# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
+# for detailed Gopkg.toml documentation.
+#
+# required = ["github.com/user/thing/cmd/thing"]
+# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
+#
+# [[constraint]]
+#   name = "github.com/user/project"
+#   version = "1.0.0"
+#
+# [[constraint]]
+#   name = "github.com/user/project2"
+#   branch = "dev"
+#   source = "github.com/myfork/project2"
+#
+# [[override]]
+#   name = "github.com/x/y"
+#   version = "2.4.0"
+#
+# [prune]
+#   non-go = false
+#   go-tests = true
+#   unused-packages = true
+
+ignored = ["github.com/modern-go/test","github.com/modern-go/test/must","github.com/modern-go/test/should"]
+
+[[constraint]]
+  name = "github.com/modern-go/concurrent"
+  version = "1.0.0"
+
+[prune]
+  go-tests = true
+  unused-packages = true

+ 1 - 1
test/array_test.go → tests/array_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/int_test.go → tests/int_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/map_elem_array_test.go → tests/map_elem_array_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/map_elem_bytes_test.go → tests/map_elem_bytes_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/map_elem_eface_test.go → tests/map_elem_eface_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/map_elem_map_test.go → tests/map_elem_map_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/map_elem_struct_test.go → tests/map_elem_struct_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/map_key_eface_test.go → tests/map_key_eface_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/map_key_iface_test.go → tests/map_key_iface_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/map_key_ptr_test.go → tests/map_key_ptr_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/map_test.go → tests/map_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/op_test.go → tests/op_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"github.com/modern-go/reflect2"

+ 1 - 1
test/slice_array_test.go → tests/slice_array_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/slice_bytes_test.go → tests/slice_bytes_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/slice_eface_test.go → tests/slice_eface_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/slice_iface_test.go → tests/slice_iface_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/slice_map_test.go → tests/slice_map_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/slice_ptr_test.go → tests/slice_ptr_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/slice_string_test.go → tests/slice_string_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/slice_struct_test.go → tests/slice_struct_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/slice_test.go → tests/slice_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/struct_eface_test.go → tests/struct_eface_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/struct_ptr_test.go → tests/struct_ptr_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"

+ 1 - 1
test/struct_test.go → tests/struct_test.go

@@ -1,4 +1,4 @@
-package test
+package tests
 
 import (
 	"testing"