/usr/share/gocode/src/code.google.com/p/go.text is in golang-golang-x-text-dev 0.0~git20170627.0.6353ef0-1ubuntu2.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/share/gocode/src/code.google.com/p/../../golang.org/x/text