helpers

package
v0.0.0-...-bf9f4d5 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package helpers provides simple helper to deal with various nil events and slice objects

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(arr []*object.Tag, elemName string) (*object.Tag, bool)

Contains check if a tag is present in an array by name. If so it returns that element

func IsBoolPtrTrue

func IsBoolPtrTrue(ptr *bool) bool

IsBoolPtrTrue returns true if the *bool is not nil and the value is true

func IsStringPtrNilOrEmtpy

func IsStringPtrNilOrEmtpy(ptr *string) bool

IsStringPtrNilOrEmtpy returns true either if the *string is nil or the value is empty

Types

This section is empty.

Jump to

Keyboard shortcuts

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