How to create function in golang part-2