mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-20 06:54:20 +00:00
Fix some utils, spacing, func naming, test inputs, etc.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// Copyright 2024 the Pinniped contributors. All Rights Reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package testutil
|
||||
|
||||
import "strings"
|
||||
|
||||
func SplitByNewline(lineToSplit string) []string {
|
||||
if len(lineToSplit) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
return strings.Split(strings.TrimSpace(lineToSplit), "\n")
|
||||
}
|
||||
Reference in New Issue
Block a user