Skip to content

Commit

Permalink
add a Clone method to the Config
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jan 13, 2022
1 parent f4af388 commit 8a323c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ type Config struct {
MemoryManager MemoryManager
}

func (c *Config) Clone() *Config {
copy := *c
return &copy
}

// DefaultConfig is used to return a default configuration
func DefaultConfig() *Config {
return &Config{
Expand Down

0 comments on commit 8a323c6

Please sign in to comment.