github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/talks/2014/readability/long-line-short.go (about) 1 // +build OMIT 2 3 package sampling 4 5 import ( 6 spb "foo/bar/service_proto" 7 ) 8 9 type Server struct { 10 // some fields 11 } 12 13 func (s *Server) SampleMetrics(req *spb.Request, resp *spb.Response, latency time.Duration) { // HL 14 // some code 15 }