Skip to content

Commit

Permalink
updated URI.Extension() documentation
Browse files Browse the repository at this point in the history
Updated URI.Extension() documentation to clarify that it returns the extension with the dot included.
  • Loading branch information
roskee authored Nov 3, 2023
1 parent 2921c11 commit dea4e62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uri.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ type URI interface {
fmt.Stringer

// Extension should return the file extension of the resource
// referenced by the URI. For example, the Extension() of
// 'file://foo/bar.baz' is 'baz'. May return an empty string if the
// referenced resource has none.
// (including the dot) referenced by the URI. For example, the
// Extension() of 'file://foo/bar.baz' is '.baz'. May return an
// empty string if the referenced resource has none.
Extension() string

// Name should return the base name of the item referenced by the URI.
Expand Down

0 comments on commit dea4e62

Please sign in to comment.