go - golang gofmt package rewrite wildcard -


i'm trying gofmt rewrite of packages start prefix. like:

gofmt -r 'github.com/some/path/<wildcard> -> someotherrepo.com/some/path/<wildcard>'

obviously wildcard isn't valid syntax, showing concept. i've tried single lowercase character, doesn't work here.

is possible i'm trying gofmt?

this gofmt command page says

given file, operates on file; given directory, operates on .go files in directory, recursively 

https://golang.org/cmd/gofmt/


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -