diff options
Diffstat (limited to 'godoc/tohtml_other.go')
-rw-r--r-- | godoc/tohtml_other.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/godoc/tohtml_other.go b/godoc/tohtml_other.go new file mode 100644 index 000000000..a1dcf2e19 --- /dev/null +++ b/godoc/tohtml_other.go @@ -0,0 +1,17 @@ +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build !go1.19 +// +build !go1.19 + +package godoc + +import ( + "bytes" + "go/doc" +) + +func godocToHTML(buf *bytes.Buffer, pkg *doc.Package, comment string) { + doc.ToHTML(buf, comment, nil) +} |