this post was submitted on 02 Oct 2023
11 points (100.0% liked)

Golang

2217 readers
1 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 1 year ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] lyda 2 points 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!