slice

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2019 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

This file is the reference implementation of the Slice type. It is implemented for type Item, which can be substituted with any type implementing the Less() method.

DO NOT EDIT Code automatically generated. Generated by: go run github.com/pierrec/packagen/cmd/packagen -v bundle -nogen -o slice_bytes.go -prefix Bytes -mvtype Item=Bytes -rmtype Item slice.go

DO NOT EDIT Code automatically generated. Generated by: go run github.com/pierrec/packagen/cmd/packagen -v bundle -nogen -o slice_int64.go -prefix Int64 -mvtype Item=Int64 -rmtype Item slice.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes

type Bytes []byte

func (Bytes) Less

func (n Bytes) Less(p Bytes) bool

type BytesSlice

type BytesSlice []Bytes // this type and its methods will be implemented and renamed with the relevant chosen type

func (BytesSlice) Max

func (s BytesSlice) Max() Bytes

func (BytesSlice) Min

func (s BytesSlice) Min() Bytes

type Int64

type Int64 int64

func (Int64) Less

func (n Int64) Less(p Int64) bool

type Int64Slice

type Int64Slice []Int64 // this type and its methods will be implemented and renamed with the relevant chosen type

func (Int64Slice) Max

func (s Int64Slice) Max() Int64

func (Int64Slice) Min

func (s Int64Slice) Min() Int64

type Item

type Item int // this type will get removed for generated code

func (Item) Less

func (n Item) Less(p Item) bool

type Slice

type Slice []Item // this type and its methods will be implemented and renamed with the relevant chosen type

func (Slice) Max

func (s Slice) Max() Item

func (Slice) Min

func (s Slice) Min() Item

Jump to

Keyboard shortcuts

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