ctypes

package
v0.0.0-...-d931726 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package ctype provides some custom types with useful function extensions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringArray

type StringArray []string

StringArray extends a string slice by some useful functionalities.

func (StringArray) Contains

func (arr StringArray) Contains(v string) bool

Contains returns true when v is included in arr.

func (StringArray) IndexOf

func (arr StringArray) IndexOf(v string) int

IndexOf returns the index of v in arr. If not found, the returned index is -1.

func (StringArray) Splice

func (arr StringArray) Splice(i, r int) StringArray

Splice returns a new array sliced at i by the range of r.

Jump to

Keyboard shortcuts

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