Say I have go:generate directives in two files: one in the foo/ directory and one in the mock/ directory. The generated mock code will need data structures from the generated code in the foo module. Will go generate ./... reliably generate code in the correct order? What do I need to do to make that happen?

  • Kevin Lyda@programming.devOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Good answers. I like these. I like the more than one command in a file, that will work. And yes, should have read the source!