container

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(first, second interface{}) int

Compares first and second values. The given values must be numeric or must implement Comparable interface.

Returns -1 if less than, 0 if equals, 1 if greather than.

Types

type Comparable

type Comparable interface {
	// Compare with other value. Returns -1 if less than, 0 if
	// equals, and 1 if greather than the other value.
	Compare(other Comparable) int
}

Comparable interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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