On 1/12/21 12:37 PM, Axel Wagner wrote:
> Again, would be interesting how other languages can make this simpler, 
> because I
> genuinely can't imagine.

The issue is that I believe go avoids files in order to speed up compilation.
Which I am thankful for. It's just I don't believe the replace directive was
meant for this and yet upon googling. It is the only way that I have found. mod
vendor doesn't seem to do what I want.

They are fairly similar otherwise.

Flutter create
open lib/main.dart
add import to file locations in any dart files where you wish to access that
particular code (like in most languages)
add package to pubspec.yaml
IDE asks to run flutter pub get
add import referencing package where needed

vs

go mod init
edit .mod with weird replace line that links a domain to a file location
add import matching replace directive domain/url
go get package
add import for the package

As I said. I should probably just set up a local git server and sync up that
way. symlinks were only an issue in some programs and only when using Windows 
too.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/8417466a-deb0-98f6-3635-3240278dbcc7%40gmail.com.

Reply via email to