dmarkham / enumer

A Go tool to auto generate methods for your enums
Other
410 stars 66 forks source link

go mod tidy will remove the reference to github.com/dmarkham/enumer from go.mod #77

Open madkins23 opened 1 year ago

madkins23 commented 1 year ago

This can be prevented by adding a tools.go file:

//go:build tools

package tools

import (
    // Protect this entry in go.mod from being removed by go mod tidy.
    _ "github.com/dmarkham/enumer"
)

Should probably go into README.md.