In this bizarre example, someone has created a new type which is really just a string:
type CustomType string const ( Foobar CustomType = \"somestr
answering this for anyone who comes here searching. You can convert the type to string on return using fmt.Sprintf
click here to see it in action
func SomeFunction() string { return fmt.Sprintf("%v", Foobar) }