| 1 |
// SPDX-License-Identifier: BSD-3-Clause |
| 2 |
//go:build linux && go1.20 |
| 3 |
|
| 4 |
// Copyright (C) 2025 SUSE LLC. All rights reserved. |
| 5 |
// Use of this source code is governed by a BSD-style |
| 6 |
// license that can be found in the LICENSE file. |
| 7 |
|
| 8 |
// Package gocompat includes compatibility shims (backported from future Go |
| 9 |
// stdlib versions) to permit filepath-securejoin to be used with older Go |
| 10 |
// versions (often filepath-securejoin is added in security patches for old |
| 11 |
// releases, so avoiding the need to bump Go compiler requirements is a huge |
| 12 |
// plus to downstreams). |
| 13 |
package gocompat |