xstrings

package
v0.0.0-...-5c722c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SameData

func SameData(s1, s2 string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL