Explorar o código

Gofmt all source files.

David Symonds %!s(int64=12) %!d(string=hai) anos
pai
achega
47832e5afe
Modificáronse 3 ficheiros con 14 adicións e 14 borrados
  1. 3 3
      glog.go
  2. 3 3
      glog_file.go
  3. 8 8
      glog_test.go

+ 3 - 3
glog.go

@@ -1,13 +1,13 @@
 // Go support for leveled logs, analogous to https://code.google.com/p/google-glog/
 // Go support for leveled logs, analogous to https://code.google.com/p/google-glog/
 //
 //
 // Copyright 2013 Google Inc. All Rights Reserved.
 // Copyright 2013 Google Inc. All Rights Reserved.
-// 
+//
 // Licensed under the Apache License, Version 2.0 (the "License");
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 // You may obtain a copy of the License at
-// 
+//
 //     http://www.apache.org/licenses/LICENSE-2.0
 //     http://www.apache.org/licenses/LICENSE-2.0
-// 
+//
 // Unless required by applicable law or agreed to in writing, software
 // Unless required by applicable law or agreed to in writing, software
 // distributed under the License is distributed on an "AS IS" BASIS,
 // distributed under the License is distributed on an "AS IS" BASIS,
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 3 - 3
glog_file.go

@@ -1,13 +1,13 @@
 // Go support for leveled logs, analogous to https://code.google.com/p/google-glog/
 // Go support for leveled logs, analogous to https://code.google.com/p/google-glog/
 //
 //
 // Copyright 2013 Google Inc. All Rights Reserved.
 // Copyright 2013 Google Inc. All Rights Reserved.
-// 
+//
 // Licensed under the Apache License, Version 2.0 (the "License");
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 // You may obtain a copy of the License at
-// 
+//
 //     http://www.apache.org/licenses/LICENSE-2.0
 //     http://www.apache.org/licenses/LICENSE-2.0
-// 
+//
 // Unless required by applicable law or agreed to in writing, software
 // Unless required by applicable law or agreed to in writing, software
 // distributed under the License is distributed on an "AS IS" BASIS,
 // distributed under the License is distributed on an "AS IS" BASIS,
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ 8 - 8
glog_test.go

@@ -1,13 +1,13 @@
 // Go support for leveled logs, analogous to https://code.google.com/p/google-glog/
 // Go support for leveled logs, analogous to https://code.google.com/p/google-glog/
 //
 //
 // Copyright 2013 Google Inc. All Rights Reserved.
 // Copyright 2013 Google Inc. All Rights Reserved.
-// 
+//
 // Licensed under the Apache License, Version 2.0 (the "License");
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 // You may obtain a copy of the License at
-// 
+//
 //     http://www.apache.org/licenses/LICENSE-2.0
 //     http://www.apache.org/licenses/LICENSE-2.0
-// 
+//
 // Unless required by applicable law or agreed to in writing, software
 // Unless required by applicable law or agreed to in writing, software
 // distributed under the License is distributed on an "AS IS" BASIS,
 // distributed under the License is distributed on an "AS IS" BASIS,
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -28,9 +28,9 @@ import (
 // Test that shortHostname works as advertised.
 // Test that shortHostname works as advertised.
 func TestShortHostname(t *testing.T) {
 func TestShortHostname(t *testing.T) {
 	for hostname, expect := range map[string]string{
 	for hostname, expect := range map[string]string{
-		"":                     "",
-		"host":                 "host",
-		"host.google.com":      "host",
+		"":                "",
+		"host":            "host",
+		"host.google.com": "host",
 	} {
 	} {
 		if got := shortHostname(hostname); expect != got {
 		if got := shortHostname(hostname); expect != got {
 			t.Errorf("shortHostname(%q): expected %q, got %q", hostname, expect, got)
 			t.Errorf("shortHostname(%q): expected %q, got %q", hostname, expect, got)
@@ -215,7 +215,7 @@ var vGlobs = map[string]bool{
 	"glog_test=2": true,
 	"glog_test=2": true,
 	"glog_test=3": true, // If -vmodule sets V to 1, V(3) will succeed.
 	"glog_test=3": true, // If -vmodule sets V to 1, V(3) will succeed.
 	// These all use 2 and check the patterns. All are true.
 	// These all use 2 and check the patterns. All are true.
-	"*=2":          true,
+	"*=2":           true,
 	"?l*=2":         true,
 	"?l*=2":         true,
 	"????_*=2":      true,
 	"????_*=2":      true,
 	"??[mno]?_*t=2": true,
 	"??[mno]?_*t=2": true,
@@ -331,4 +331,4 @@ func BenchmarkHeader(b *testing.B) {
 	for i := 0; i < b.N; i++ {
 	for i := 0; i < b.N; i++ {
 		logging.putBuffer(logging.header(infoLog))
 		logging.putBuffer(logging.header(infoLog))
 	}
 	}
-}
+}