utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(input bool) *bool

func Difference

func Difference(a, b []string) []string

Difference returns the elements in `a` that aren't in `b`.

func EnsureStringInSlice

func EnsureStringInSlice(sl []string, in string) []string

EnsureStringInSlice ensures the given string is contained in a slice

func EscapeSingleQuote

func EscapeSingleQuote(qparam string) string

EscapeSingleQuote replaces all occurrences of single quote, with 2 single quotes. For requests that use single quotes, if any parameter values also contain single quotes, those must be double escaped; otherwise, the request will fail due to invalid syntax. https://docs.microsoft.com/en-us/graph/query-parameters#escaping-single-quotes

func Int32

func Int32(input int32) *int32

func NullableString

func NullableString(input string) *msgraph.StringNullWhenEmpty

func String

func String(input string) *string

Types

This section is empty.

Jump to

Keyboard shortcuts

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