{"modulePath":"github.com/cloudquery/plugin-sdk/v2","version":"v2.7.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package helpers\n\n## Functions\n\n```go\nfunc FormatSlice(a []string) string\n```\n\n```go\nfunc HasDuplicates(resources []string) bool\n```\n\n```go\nfunc InterfaceSlice(slice any) []any\n```\nInterfaceSlice converts any any into a \\[]any slice\n\n```go\nfunc ToPointer(v any) any\n```\nToPointer takes an any object and will return a pointer to this object if the object is not already a pointer. Otherwise, it will return the original value. It is safe to typecast the return-value of GetPointer into a pointer of the right type, except in very special cases (such as passing in nil without an explicit type)\n\n```go\nfunc ToStringSliceE(i any) ([]string, error)\n```\n\n```go\nfunc Uint64ToInt(i uint64) int\n```\n\n```go\nfunc Uint64ToInt64(i uint64) int64\n```\nUint64ToInt64 if value is bigger than math.MaxInt64 return math.MaxInt64 otherwise returns original value casted to int64\n\n","path":"github.com/cloudquery/plugin-sdk/v2/helpers","name":"helpers","synopsis":"","isRedistributable":true}
