1 // Copyright 2022 The Go 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 //go:build go1.19 6 // +build go1.19 7 8 package godoc 9 10 import ( 11 "bytes" 12 "go/doc" 13 ) 14 15 func godocToHTML(buf *bytes.Buffer, pkg *doc.Package, comment string) { 16 buf.Write(pkg.HTML(comment)) 17 } 18