I found an answer after some time. All I needed to do was to specify the .proto syntax I was using with the file
syntax = "proto3"; package routeguide; option go_package = "/proto";
Read more here