| 1 | package graphscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/ |
| 2 | |
| 3 | import "syncscip-go gomod github.com/golang/go/src go1.16 sync/" |
| 4 | |
| 5 | type entryscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/entry# struct { |
| 6 | datascip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/entry#data. interface{} |
| 7 | nextscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/entry#next. *entryscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/entry# |
| 8 | } |
| 9 | |
| 10 | type Stackscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack# struct { |
| 11 | lockscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#lock. *syncscip-go gomod github.com/golang/go/src go1.16 sync/.Mutexscip-go gomod github.com/golang/go/src go1.16 sync/Mutex# |
| 12 | headscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#head. *entryscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/entry# |
| 13 | Sizescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#Size. int |
| 14 | } |
| 15 | |
| 16 | func (stk *Stackscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#) Pushscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#Push().(data interface{}) { |
| 17 | stk.lockscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#lock..Lockscip-go gomod github.com/golang/go/src go1.16 sync/Mutex#Lock().() |
| 18 | |
| 19 | element := new(entryscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/entry#) |
| 20 | element.datascip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/entry#data. = data |
| 21 | temp := stk.headscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#head. |
| 22 | element.nextscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/entry#next. = temp |
| 23 | stk.headscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#head. = element |
| 24 | stk.Sizescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#Size.++ |
| 25 | |
| 26 | stk.lockscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#lock..Unlockscip-go gomod github.com/golang/go/src go1.16 sync/Mutex#Unlock().() |
| 27 | } |
| 28 | |
| 29 | func (stk *Stackscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#) Popscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#Pop().() interface{} { |
| 30 | if stk.headscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#head. == nil { |
| 31 | return nil |
| 32 | } |
| 33 | stk.lockscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#lock..Lockscip-go gomod github.com/golang/go/src go1.16 sync/Mutex#Lock().() |
| 34 | r := stk.headscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#head..datascip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/entry#data. |
| 35 | stk.headscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#head. = stk.headscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#head..nextscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/entry#next. |
| 36 | stk.Sizescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#Size.-- |
| 37 | |
| 38 | stk.lockscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#lock..Unlockscip-go gomod github.com/golang/go/src go1.16 sync/Mutex#Unlock().() |
| 39 | |
| 40 | return r |
| 41 | } |
| 42 | |
| 43 | func NewStackscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/NewStack().() *Stackscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack# { |
| 44 | stk := new(Stackscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#) |
| 45 | stk.lockscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/graph`/Stack#lock. = &syncscip-go gomod github.com/golang/go/src go1.16 sync/.Mutexscip-go gomod github.com/golang/go/src go1.16 sync/Mutex#{} |
| 46 | return stk |
| 47 | } |