File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -111,11 +111,20 @@ func NewReader(r io.Reader) *Reader {
111
111
}
112
112
113
113
// NextHeader returns the next header line as a raw string, including the '@'.
114
- // Returns EOF when out of header lines, then Next can be called for the
114
+ // Returns EOF when out of header lines, then Read can be called for the
115
115
// data lines.
116
+ //
117
+ // Deprecated: use ReadHeader.
116
118
func (r * Reader ) NextHeader () (string , error ) {
119
+ return r .ReadHeader ()
120
+ }
121
+
122
+ // ReadHeader returns the next header line as a raw string, including the '@'.
123
+ // Returns EOF when out of header lines, then Read can be called for the
124
+ // data lines.
125
+ func (r * Reader ) ReadHeader () (string , error ) {
117
126
if r .h {
118
- panic ("Cannot read header after reading alignments." )
127
+ panic ("cannot read header after reading alignments." )
119
128
}
120
129
b , err := r .r .ReadByte ()
121
130
if err != nil {
You can’t perform that action at this time.
0 commit comments