소스 검색

Gofmt Cleanup

Matthew Ellison 8 년 전
부모
커밋
f9df1e79f2
2개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 3
      if.go
  2. 1 1
      syscalls_linux.go

+ 1 - 3
if.go

@@ -1,8 +1,8 @@
 package water
 
 import (
-	"io"
 	"errors"
+	"io"
 )
 
 // Interface is a TUN/TAP interface.
@@ -73,5 +73,3 @@ func (ifce *Interface) IsTAP() bool {
 func (ifce *Interface) Name() string {
 	return ifce.name
 }
-
-

+ 1 - 1
syscalls_linux.go

@@ -110,7 +110,7 @@ func createInterface(fd uintptr, ifName string, flags uint16) (createdIFName str
 }
 
 func setPersistence(fd uintptr, enabled bool) error {
-	value := 0;
+	value := 0
 	if enabled {
 		value = 1
 	}