In swift, strings must be strictly utf8, and when golang returns a string with non utf8 characters, it gets translated to an empty string for utf8. To avoid this situation, we sanitize strings before returning them. This behavior is only enabled when building with the "ios" build tag.
8 lines
107 B
Go
8 lines
107 B
Go
//go:build !ios
|
|
// +build !ios
|
|
|
|
package crypto
|
|
|
|
func sanitizeString(input string) string {
|
|
return input
|
|
}
|