github.com/grailbio/base@v0.0.11/tsv/doc.go (about)

     1  // Copyright 2018 GRAIL, Inc.  All rights reserved.
     2  // Use of this source code is governed by the Apache-2.0
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package tsv provides a simple TSV writer which takes care of number->string
     6  // conversions and tabs, and is far more performant than fmt.Fprintf (thanks to
     7  // use of strconv.Append{Uint,Float}).
     8  //
     9  // Usage is similar to bufio.Writer, except that in place of the usual Write()
    10  // method, there are typed WriteString(), WriteUint32(), etc. methods which
    11  // append one field at a time to the current line, and an EndLine() method to
    12  // finish the line.
    13  package tsv