cmp

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package cmp provides a set of comparison functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equals

func Equals(slice1, slice2 []*string) bool

Equals returns true if the two slices of pointers to strings are equal.

Types

type ByPtrValue

type ByPtrValue []*string

ByPtrValue is a type to sort a slice of pointers to strings.

func (ByPtrValue) Len

func (s ByPtrValue) Len() int

Len returns the length of the slice.

func (ByPtrValue) Less

func (s ByPtrValue) Less(i, j int) bool

Less returns true if the element with index i should sort before the element with index j.

func (ByPtrValue) Swap

func (s ByPtrValue) Swap(i, j int)

Swap swaps the elements with indexes i and j.

Jump to

Keyboard shortcuts

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