You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
need to structure this more like real golang do cmd/immich-backup-tool/main.go that's your main package then make an internal package that's recognized by the language, internal
import everything relative to go.modgithub.com/YuseiRun/immich-backup-tool/internal/<pkg> name your folders the same as the package for now
cognit lints would be wild rn so you want to definitely extract some stuff out of this massive main file, maybe ask gemini to do it or something
set up your editor to gofmt automatically your spacing is off
cmd/immich-backup-tool/main.gothat's your main package then make an internal package that's recognized by the language,internalgo.modgithub.com/YuseiRun/immich-backup-tool/internal/<pkg>name your folders the same as the package for nowcognitlints would be wild rn so you want to definitely extract some stuff out of this massive main file, maybe ask gemini to do it or somethinggofmtautomatically your spacing is offcobra, or use an interface for each command like i do here https://github.com/AnthonyHewins/gtx/blob/master/cmd/gtx/main.go#L11 dead simple abstraction()