mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2025-12-23 06:15:47 +00:00
Enforce importas: - go.pinniped.dev/generated/latest/apis/supervisor/config/v1alpha1 - go.pinniped.dev/generated/latest/apis/supervisor/idp/v1alpha1
24 lines
446 B
Go
24 lines
446 B
Go
// Copyright 2020-2024 the Pinniped contributors. All Rights Reserved.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package here
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/MakeNowJust/heredoc/v2"
|
|
)
|
|
|
|
const (
|
|
tab = "\t"
|
|
fourSpaces = " "
|
|
)
|
|
|
|
func Doc(s string) string {
|
|
return strings.ReplaceAll(heredoc.Doc(s), tab, fourSpaces)
|
|
}
|
|
|
|
func Docf(raw string, args ...any) string {
|
|
return strings.ReplaceAll(heredoc.Docf(raw, args...), tab, fourSpaces)
|
|
}
|