Construct a query with predicate as http://dbpedia.org/ontology/abstract and you have your summary.
curl -s "https://en.wikipedia.org/w/api.php?action=parse&contentmodel=wikitext&format=json&redirects&explaintext&prop=text§ion=0&page=golang" | jq .parse.text.\"*\" > temp.html; links temp.html
(Scroll that). Not quite the same, but... bashwiki() {
links -dump "https://en.wikipedia.org/wiki/$@" | head -n 60
}
And call it with `$ bashwiki golang` and you get the summary (and some of the other text). My guess is that someone a little more familiar with bash could strip the extra output and make it a bit nicer though.As they say "to each his own" :)
my osx install does not seem to have these things.
[edit: typo]