Vendor main dependencies.
This commit is contained in:
parent
49a09ab7dd
commit
dd5e3fba01
2738 changed files with 1045689 additions and 0 deletions
28
vendor/github.com/BurntSushi/ty/tyvars.go
generated
vendored
Normal file
28
vendor/github.com/BurntSushi/ty/tyvars.go
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
package ty
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
)
|
||||
|
||||
// TypeVariable is the underlying type of every type variable used in
|
||||
// parametric types. It should not be used directly. Instead, use
|
||||
//
|
||||
// type myOwnTypeVariable TypeVariable
|
||||
//
|
||||
// to create your own type variable. For your convenience, this package
|
||||
// defines some type variables for you. (e.g., `A`, `B`, `C`, ...)
|
||||
type TypeVariable struct {
|
||||
noImitation struct{}
|
||||
}
|
||||
|
||||
// tyvarUnderlyingType is used to discover types that are type variables.
|
||||
// Namely, any type variable must be convertible to `TypeVariable`.
|
||||
var tyvarUnderlyingType = reflect.TypeOf(TypeVariable{})
|
||||
|
||||
type A TypeVariable
|
||||
type B TypeVariable
|
||||
type C TypeVariable
|
||||
type D TypeVariable
|
||||
type E TypeVariable
|
||||
type F TypeVariable
|
||||
type G TypeVariable
|
Loading…
Add table
Add a link
Reference in a new issue