Move extraction to library
Analyze go packages