Skip to content

Commit

Permalink
✨ feat: access to app's mountpath
Browse files Browse the repository at this point in the history
  • Loading branch information
balcieren committed Sep 2, 2022
1 parent 3cbe99f commit a349350
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -711,10 +711,6 @@ func (app *App) All(path string, handlers ...Handler) Router {

// The MountPath property contains one or more path patterns on which a sub-app was mounted.
func (app *App) MountPath() string {
if app.mountpath == "" {
panic("mountpath cannot be used on parent app")
}

return app.mountpath
}

Expand Down

1 comment on commit a349350

@ReneWerner87
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: a349350 Previous: b7500a8 Ratio
Benchmark_SlashRecognition/indexBytes 24.88 ns/op 0 B/op 0 allocs/op 5.063 ns/op 0 B/op 0 allocs/op 4.91
Benchmark_Cache 12664 ns/op 49368 B/op 6 allocs/op 381.5 ns/op 16 B/op 2 allocs/op 33.20
Benchmark_Cache_AdditionalHeaders 1595 ns/op 592 B/op 9 allocs/op 490.6 ns/op 16 B/op 2 allocs/op 3.25

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.