Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for HasSuffix (0.16 sec)

  1. src/bytes/bytes.go

    // HasPrefix reports whether the byte slice s begins with prefix.
    func HasPrefix(s, prefix []byte) bool {
    	return len(s) >= len(prefix) && Equal(s[0:len(prefix)], prefix)
    }
    
    // HasSuffix reports whether the byte slice s ends with suffix.
    func HasSuffix(s, suffix []byte) bool {
    	return len(s) >= len(suffix) && Equal(s[len(s)-len(suffix):], suffix)
    }
    
    // Map returns a copy of the byte slice s with all its characters modified
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
Back to top