s3-orchestrator

must

import "github.com/afreidah/s3-orchestrator/internal/util/must"

Index

func NotNil

func NotNil(name string, v any)

NotNil panics when v is nil. Handles both the untyped-nil case (v == nil) and the typed-nil interface case (e.g. var x Store = (*concreteStore)(nil)) which the bare comparison misses. name should identify the dependency for the panic message; constructors typically pass the parameter name.

Generated by gomarkdoc