Index: 2014/readability/long-line-fold.go |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/2014/readability/long-line-fold.go |
@@ -0,0 +1,15 @@ |
+package sampling |
+ |
+import ( |
+ servicepb "foo/bar/service_proto" |
+) |
+ |
+type SamplingServer struct { |
+ // some fields |
+} |
+ |
+func (server *SamplingServer) SampleMetrics( // HL |
+ sampleRequest *servicepb.Request, sampleResponse *servicepb.Response, // HL |
+ latency time.Duration) { // HL |
+ // some code |
+} |