github.com/jjjabc/fitsio@v0.0.0-20161215022839-d1807e9e818e/reader.go (about)

     1  // Copyright 2015 The astrogo Authors.  All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package fitsio
     6  
     7  import "io"
     8  
     9  type Reader struct {
    10  	r io.Reader
    11  }
    12  
    13  func NewReader(r io.Reader) *Reader {
    14  	return &Reader{
    15  		r: r,
    16  	}
    17  }