View definition

(*URI).LastPathSegment

Defined in github.com/valyala/fasthttp/uri.go

Description

LastPathSegment returns the last part of uri path after '/'.

Examples:

* For /foo/bar/baz.html path returns baz.html.
* For /foo/bar/ returns empty byte slice.
* For /foobar.js returns foobar.js.

LastPathSegment is referenced in 1 repository

github.com/valyala/fasthttp