Prefer mixedCaps over underscore

This commit is contained in:
Florian Weingarten 2015-04-24 19:39:32 -04:00
parent 8be6dc0265
commit ebae478631
13 changed files with 76 additions and 76 deletions

View file

@ -32,7 +32,7 @@ type SFTP struct {
cmd *exec.Cmd
}
func start_client(program string, args ...string) (*SFTP, error) {
func startClient(program string, args ...string) (*SFTP, error) {
// Connect to a remote host and request the sftp subsystem via the 'ssh'
// command. This assumes that passwordless login is correctly configured.
cmd := exec.Command(program, args...)
@ -68,7 +68,7 @@ func start_client(program string, args ...string) (*SFTP, error) {
// exec.Command, it is expected to speak sftp on stdin/stdout. The backend
// is expected at the given path.
func Open(dir string, program string, args ...string) (*SFTP, error) {
sftp, err := start_client(program, args...)
sftp, err := startClient(program, args...)
if err != nil {
return nil, err
}
@ -141,7 +141,7 @@ func Open(dir string, program string, args ...string) (*SFTP, error) {
// Create creates all the necessary files and directories for a new sftp
// backend at dir.
func Create(dir string, program string, args ...string) (*SFTP, error) {
sftp, err := start_client(program, args...)
sftp, err := startClient(program, args...)
if err != nil {
return nil, err
}