mirror of
https://github.com/golang/go.git
synced 2025-05-29 19:35:42 +00:00
Running 'godoc -src' would end up with concatenated sources: $ godoc -src github.com/bradfitz/http2 Frame // a frameParser parses a frame given its FrameHeader and payload // bytes. The length of payload will always equal fh.Length (which // might be 0). type frameParser func(fh FrameHeader, payload []byte) (Frame, error)// A Frame is the base interface implemented by all frame types. // Callers will generally type-assert the specific frame type: // *HeadersFrame, *SettingsFrame, *WindowUpdateFrame, etc. // // Frames are only valid until the next call to Framer.ReadFrame. type Frame interface { Unconditionnally insert two newlines: $ godoc -src github.com/bradfitz/http2 Frame // a frameParser parses a frame given its FrameHeader and payload // bytes. The length of payload will always equal fh.Length (which // might be 0). type frameParser func(fh FrameHeader, payload []byte) (Frame, error) // A Frame is the base interface implemented by all frame types. // Callers will generally type-assert the specific frame type: // *HeadersFrame, *SettingsFrame, *WindowUpdateFrame, etc. // // Frames are only valid until the next call to Framer.ReadFrame. type Frame interface { Fixes #9726. Change-Id: I51ee04e53d4962c890ea601125eda8fce84d6a46 Reviewed-on: https://go-review.googlesource.com/7681 Reviewed-by: Robert Griesemer <gri@golang.org>