Movatterモバイル変換


[0]ホーム

URL:


Alert GO-2024-3228: Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder
Notice  The highest tagged major version isv2.

slice

package
v0.27.3Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License:AGPL-3.0Imports:0Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcContains

func Contains[Tcomparable](haystack []T, needle T)bool

funcContainsCompareadded inv0.7.5

func ContainsCompare[Tany](haystack []T, needle T, equal func(a, b T)bool)bool

funcNewadded inv0.17.0

func New[Tany](items ...T) []T

New is a convenience method for creating []T.

funcOverlapadded inv0.7.5

func Overlap[Tcomparable](a []T, b []T)bool

Overlap returns if the 2 sets have any overlap (element(s) in common)

funcOverlapCompareadded inv0.7.5

func OverlapCompare[Tany](a []T, b []T, equal func(a, b T)bool)bool

funcSameElementsadded inv0.17.0

func SameElements[Tcomparable](a []T, b []T)bool

SameElements returns true if the 2 lists have the same elements in anyorder.

funcUniqueadded inv0.11.0

func Unique[Tcomparable](a []T) []T

Unique returns a new slice with all duplicate elements removed.This is a slow function on large lists.TODO: Sort elements and implement a faster search algorithm if wereally start to use this.

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp