Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

型のテーブルの形式 #10

Closed
khei4 opened this issue Mar 17, 2022 · 1 comment
Closed

型のテーブルの形式 #10

khei4 opened this issue Mar 17, 2022 · 1 comment

Comments

@khei4
Copy link
Owner

khei4 commented Mar 17, 2022

これで実際のGoの型が取れるか?
いちいちMatchをかくしかないのか

var TypeVals map[string][]string = map[string][]string{
	"bool":   {"true", "false"},
	"string": {"\"\""},
	"int":    {"0", "-(1 << 31) - 1", "1 << 31"},
	"int64":  {"0", "-(1 << 63) - 1", "1 << 63"},
	"uint":   {"0", "^uint(0)"},
	// TODO: import math library by formatting test
	// "float32": []string{"0", "math.NaN()", "math.Inf(0)", "math.Inf(-1)"},
}
@khei4
Copy link
Owner Author

khei4 commented Mar 18, 2022

types.Typeに変更

@khei4 khei4 closed this as completed Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant