Skip to content

x/pkgsite: Something not right with formatting of function signatures #76742

@pjebs

Description

@pjebs

What is the URL of the page with the issue?

https://pkg.go.dev/github.com/rocketlaunchr/unsafe?utm_source=godoc#New

What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36

Screenshot

Image

What did you do?

N/A

What did you see happen?

N/A

What did you expect to see?

func New[T any, PtrT interface {
	*T
	UnsafeClearOutFields
}](typ ...reflect.Type) *T

⚠️ I expected pkgsite to render the signature independently to how gofmt -s formats it.
This issue is also a gofmt issue because it shouldn't format it is like that in the first place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.pkgsite

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions