Implement == and != for strings

This commit is contained in:
Ayke van Laethem
2018-08-22 00:56:11 +02:00
parent 2777f8464e
commit c3cb22030f
2 changed files with 33 additions and 4 deletions
+12
View File
@@ -17,6 +17,18 @@ func GOMAXPROCS(n int) int {
return 1
}
func stringequal(x, y string) bool {
if len(x) != len(y) {
return false
}
for i := 0; i < len(x); i++ {
if x[i] != y[i] {
return false
}
}
return true
}
func _panic(message interface{}) {
printstring("panic: ")
printitf(message)