mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: implemented syn.scan module (closes #67)
This commit is contained in:
parent
d6fe8fc663
commit
ce76c7258d
8 changed files with 338 additions and 3 deletions
|
@ -43,6 +43,16 @@ func (m *Meta) Get(name string) interface{} {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (m *Meta) GetOr(name string, dflt interface{}) interface{} {
|
||||
m.Lock()
|
||||
defer m.Unlock()
|
||||
|
||||
if v, found := m.m[name]; found == true {
|
||||
return v
|
||||
}
|
||||
return dflt
|
||||
}
|
||||
|
||||
func (m *Meta) Each(cb func(name string, value interface{})) {
|
||||
m.Lock()
|
||||
defer m.Unlock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue