Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SameData ¶
SameData reports whether s1 and s2 have identical underlying data pointers.
This could be used in a fast string comparison path when you don't need the precise string equality answer.
For example, when SameData(s1, s2) evaluates to true, you'll never need to check the data bytes; the strings are known to be identical.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.