MAC vendor lookup: Difference between revisions
Content added Content deleted
(→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)") |
|||
Line 1,392: | Line 1,392: | ||
fn mac_lookup(mac string) string { |
fn mac_lookup(mac string) string { |
||
resp := http.get("http://api.macvendors.com/" + mac) or { |
resp := http.get("http://api.macvendors.com/" + mac) or {return 'No data from server'} |
||
return resp.body.str() |
return resp.body.str() |
||
}</syntaxhighlight> |
}</syntaxhighlight> |