//
pkg.gl
Category
github.com/gnsalok/design-patterns-go
go-design-patterns
Behavioral
Strategy
package
0.0.0-20250114054016-c032c0c4f81d
Repository:
https://github.com/gnsalok/design-patterns-go.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
1
Dependents
0
Files
66 SLOC
#
Structs
Addition
Addition Strategy.
Cache
No description provided by the author
Context
Context maintains a reference to a strategy object.
LFU
Concrete strategy.
LRU
Concrete Strategy.
Subtraction
Subtraction strategy.
#
Interfaces
EvictAlgo
Strategy Interface.
Strategy
Step 1 : Strategy defines the interface for different strategies.