func bytes.TrimSuffix

2 uses

	bytes (current package)
		bytes.go#L893: func TrimSuffix(s, suffix []byte) []byte {

	log/slog
		logger.go#L100: 	buf = bytes.TrimSuffix(buf, []byte{'\n'})