Skip to content

Commit

Permalink
x/tools: drop go1.18 support
Browse files Browse the repository at this point in the history
Updates golang/go#64407

Change-Id: I247a7ff7f07613674f8e31e4cb9c5a68762d2203
Reviewed-on: https://go-review.googlesource.com/c/tools/+/567418
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
  • Loading branch information
adonovan authored and gopherbot committed Feb 29, 2024
1 parent ae6184d commit f5ab283
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 42 deletions.
9 changes: 1 addition & 8 deletions godoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,16 +346,9 @@ func isDigit(ch rune) bool {
}

func comment_htmlFunc(info *PageInfo, comment string) string {
var buf bytes.Buffer
// TODO(gri) Provide list of words (e.g. function parameters)
// to be emphasized by ToHTML.

// godocToHTML is:
// - buf.Write(info.PDoc.HTML(comment)) on go1.19
// - go/doc.ToHTML(&buf, comment, nil) on other versions
godocToHTML(&buf, info.PDoc, comment)

return buf.String()
return string(info.PDoc.HTML(comment))
}

// sanitizeFunc sanitizes the argument src by replacing newlines with
Expand Down
17 changes: 0 additions & 17 deletions tohtml_go119.go

This file was deleted.

17 changes: 0 additions & 17 deletions tohtml_other.go

This file was deleted.

0 comments on commit f5ab283

Please sign in to comment.