mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
11 lines
272 B
Go
11 lines
272 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package jobspec2
|
|
|
|
// pointerOf returns a pointer to "a". It is duplicated from the helper package
|
|
// to isolate the jobspec2 package from the rest of Nomad.
|
|
func pointerOf[A any](a A) *A {
|
|
return &a
|
|
}
|