how to use function in golang