String returns the string representation of the Effect major version.
()
| 26 | |
| 27 | // String returns the string representation of the Effect major version. |
| 28 | func (v EffectMajorVersion) String() string { |
| 29 | switch v { |
| 30 | case EffectMajorV3: |
| 31 | return "v3" |
| 32 | case EffectMajorV4: |
| 33 | return "v4" |
| 34 | default: |
| 35 | return "unknown" |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // DetectEffectVersion detects the major version of the Effect library from the program's |
| 40 | // source files. Returns EffectMajorUnknown if no Effect dependency is found or if |
no outgoing calls