util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReviewer

func GetReviewer(reviewerFlag string) string

func IndexOf

func IndexOf(data []string, item string) int

func IsIp

func IsIp(ipOrHostname string) bool

func RemoveIndex

func RemoveIndex(arr []string, idx int) []string

func Sanitize

func Sanitize(s string) string

func StringSliceEquals

func StringSliceEquals(a []string, b []string) bool

func ToString

func ToString(v interface{}) string

func ToStringSlice

func ToStringSlice(v interface{}) []string

Types

type NoopWriter

type NoopWriter struct {
}

func (NoopWriter) Write

func (w NoopWriter) Write(bytes []byte) (int, error)

Jump to

Keyboard shortcuts

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