mirror of https://github.com/tinygo-org/tinygo.git
wasmstm32webassemblymicrocontrollerarmavrspiwasiadafruitarduinocircuitplayground-expressgpioi2cllvmmicrobitnrf51nrf52nrf52840samd21tinygo
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
327 B
22 lines
327 B
4 years ago
|
package main
|
||
|
|
||
|
func stringLen(s string) int {
|
||
|
return len(s)
|
||
|
}
|
||
|
|
||
|
func stringIndex(s string, index int) byte {
|
||
|
return s[index]
|
||
|
}
|
||
|
|
||
|
func stringCompareEqual(s1, s2 string) bool {
|
||
|
return s1 == s2
|
||
|
}
|
||
|
|
||
|
func stringCompareUnequal(s1, s2 string) bool {
|
||
|
return s1 != s2
|
||
|
}
|
||
|
|
||
|
func stringCompareLarger(s1, s2 string) bool {
|
||
|
return s1 > s2
|
||
|
}
|