27bb03bbc0
* adding copyright header * fix fmt and a test
18 lines
342 B
Go
18 lines
342 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// DEPRECATED: this has been moved to go-secure-stdlib and will be removed
|
|
package mlock
|
|
|
|
import (
|
|
extmlock "github.com/hashicorp/go-secure-stdlib/mlock"
|
|
)
|
|
|
|
func Supported() bool {
|
|
return extmlock.Supported()
|
|
}
|
|
|
|
func LockMemory() error {
|
|
return extmlock.LockMemory()
|
|
}
|