MCPcopy Create free account
hub / github.com/PacktPublishing/Go-Design-Patterns / addUserToStack

Method addUserToStack

Chapter04/proxy/proxy.go:45–51  ·  view source on GitHub ↗

addUserToStack takes the user argument and adds it to the stack in place. If the stack is full it removes the first element on it before adding.

(user User)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

FindUserMethod · 0.95

Calls 1

addUserMethod · 0.80

Tested by

no test coverage detected