2014-10-06 22:20:25 +00:00
|
|
|
// This package describes ginger's base types and the interfaces covered by them
|
|
|
|
package types
|
|
|
|
|
|
|
|
// Elem is a generic type which can be used as a wrapper type for all ginger
|
|
|
|
// types, both base types and data structures
|
|
|
|
type Elem interface {
|
|
|
|
}
|
|
|
|
|
2014-10-15 00:13:10 +00:00
|
|
|
// Number can either be either an Int or a Float
|
|
|
|
type Number interface {
|
|
|
|
}
|
|
|
|
|
2014-10-06 22:29:52 +00:00
|
|
|
type Str string
|
2014-10-06 22:20:25 +00:00
|
|
|
|
2014-10-06 22:29:52 +00:00
|
|
|
type Int int
|
2014-10-06 22:20:25 +00:00
|
|
|
|
|
|
|
type Float float32
|
|
|
|
|
|
|
|
type Char rune
|
|
|
|
|
2014-10-06 22:29:52 +00:00
|
|
|
type Err error
|