A new middleware in pure golang and RESTful interface