In information retrieval, tf–idf or TFIDF, short for term frequency–inverse document frequency, is a numerical statistic that is intended to reflect how important a word is to a document in a collection or corpus.
Note: this was written for a take-home interview. It was my first Go code and I had no knowledge of Go prior to this activity. I was offered a job, not the job I interviewed for but didn't end up going there.