I am new to Go and would like to know how to create a small servlet that can accept text as the input, the output is the top 10 most used words in the text input.
If there is any library that we can use to accomplish this, please suggest as well.
You could do this easy enough with the Go standard library. The net/http package has everything you need to write a server that can take in input and spit out what you want. Here is the docs on this package: http://godoc.org/net/http