...

Package pathslice

import "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/util/pathslice"
Overview
Index

Overview ▾

func Base

func Base(path []string) string

Base returns the last element of the path. Returns empty string if path is empty.

func ToString

func ToString(path []string) string

ToString returns the path as a string with elements delimited by periods.