Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

15 linhas
379 B

  1. // Copyright 2013 The Go Authors. All rights reserved.
  2. //
  3. // Use of this source code is governed by a BSD-style
  4. // license that can be found in the LICENSE file or at
  5. // https://developers.google.com/open-source/licenses/bsd.
  6. package doc
  7. type sliceWriter struct{ p *[]byte }
  8. func (w sliceWriter) Write(p []byte) (int, error) {
  9. *w.p = append(*w.p, p...)
  10. return len(p), nil
  11. }