code: func IsNamedVolume(volume string) bool {
  	return !strings.HasPrefix(volume, ".") && !strings.HasPrefix(volume, "/") && !strings.HasPrefix(volume, "~")
  }
docs: // IsNamedVolume returns whether the specified volume (string) is a named volume or not.