MCPcopy Create free account
hub / github.com/docker/cli / isSlash

Function isSlash

cli/compose/loader/windows_path.go:12–14  ·  view source on GitHub ↗

Copyright 2010 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. https://github.com/golang/go/blob/master/LICENSE This file contains utilities to check for Windows absolute paths on Linux. The code in this file was

(c uint8)

Source from the content-addressed store, hash-verified

10// https://github.com/golang/go/blob/1d0e94b1e13d5e8a323a63cd1cc1ef95290c9c36/src/path/filepath/path_windows.go#L12-L65
11
12func isSlash(c uint8) bool {
13 return c == '\\' || c == '/'
14}
15
16// isAbs reports whether the path is a Windows absolute path.
17func isAbs(path string) (b bool) {

Callers 2

isAbsFunction · 0.85
volumeNameLenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…