With this a port can be easily generated for Go applications that support Go modules (there will be a go.mod file in the root of the project). For example: https://github.com/jrick/domain/blob/master/go.mod The mod file lists "github.com/jrick/domain" as the module name, so a portgen command to build the above tool would be: portgen go github.com/jrick/domain OK afresh1@ kmos@