Skip to content

Commit

Permalink
Add more func_types
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Feb 16, 2024
1 parent c330a39 commit ed89647
Show file tree
Hide file tree
Showing 2 changed files with 236 additions and 110 deletions.
28 changes: 27 additions & 1 deletion vm/func_types/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,21 @@ var types = []any{
new(func() any),
new(func() bool),
new(func() byte),
new(func() float32),
new(func() float64),
new(func() int),
new(func() int16),
new(func() int32),
new(func() int64),
new(func() int8),
new(func() map[string]any),
new(func() rune),
new(func() string),
new(func() uint),
new(func() uint16),
new(func() uint32),
new(func() uint64),
new(func() uint8),
new(func(Duration) Duration),
new(func(Duration) Time),
new(func(Time) Duration),
Expand All @@ -38,6 +45,7 @@ var types = []any{
new(func([]any) any),
new(func([]any) map[string]any),
new(func([]any, string) string),
new(func([]byte) string),
new(func([]string, string) string),
new(func(any) []any),
new(func(any) any),
Expand All @@ -54,21 +62,31 @@ var types = []any{
new(func(bool) float64),
new(func(bool) int),
new(func(bool) string),
new(func(bool, bool) bool),
new(func(float32) float64),
new(func(float64) bool),
new(func(float64) float32),
new(func(float64) float64),
new(func(float64) int),
new(func(float64) string),
new(func(float64, float64) bool),
new(func(int) bool),
new(func(int) float64),
new(func(int) int),
new(func(int) string),
new(func(int, int) bool),
new(func(int, int) int),
new(func(int, int) string),
new(func(int16) int32),
new(func(int32) float64),
new(func(int32) int),
new(func(int32) int64),
new(func(int64) Time),
new(func(int8) int),
new(func(int8) int16),
new(func(string) []byte),
new(func(string) []string),
new(func(string) bool),
new(func(string) bool),
new(func(string) float64),
new(func(string) int),
new(func(string) string),
Expand All @@ -77,6 +95,14 @@ var types = []any{
new(func(string, rune) int),
new(func(string, string) bool),
new(func(string, string) string),
new(func(uint) float64),
new(func(uint) int),
new(func(uint) uint),
new(func(uint16) uint),
new(func(uint32) uint64),
new(func(uint64) float64),
new(func(uint64) int64),
new(func(uint8) byte),
}

func main() {
Expand Down

0 comments on commit ed89647

Please sign in to comment.