utils

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package utils is a helper for working with ent policies

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMutationPolicyWithoutNil

func NewMutationPolicyWithoutNil(source privacy.MutationPolicy) privacy.MutationPolicy

NewMutationPolicyWithoutNil is creating a new slice of `privacy.MutationPolicy` by removing any `nil` values from the input `source` slice. It iterates over each item in the source slice and appends it to the new slice only if it is not `nil` - the new slice is then returned

Types

This section is empty.

Jump to

Keyboard shortcuts

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