Skip to content

what do #3

@AnthonyHewins

Description

@AnthonyHewins
  • 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.mod github.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
  • use a library for the CLI like cobra, 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
  • you do be writing if statements like java with the ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions