Skip to content

frame.Format: %+s prints more than "path of source file relative to the compile time GOPATH" #99

@judwhite

Description

@judwhite

Change: 7896481?diff=unified#diff-7dc02266d93e96cde6ba279eadbcac8fR62
Doc:

// %+s path of source file relative to the compile time GOPATH

Changing back to io.WriteString(s, trimGOPATH(fn.Name(), file)) gives the expected output.

This commit was merged 6 months ago; might break people to change it now. Would you accept a PR to put the previous behavior under %#s and an update to the documentation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions