Infer Go functions for packages from annotations of functions.