Enum Class GoVer

java.lang.Object
java.lang.Enum<GoVer>
ghidra.app.util.bin.format.golang.GoVer
All Implemented Interfaces:
Serializable, Comparable<GoVer>, Constable

public enum GoVer extends Enum<GoVer>
Golang version numbers
  • Enum Constant Details

    • UNKNOWN

      public static final GoVer UNKNOWN
    • V1_2

      public static final GoVer V1_2
    • V1_16

      public static final GoVer V1_16
    • V1_17

      public static final GoVer V1_17
    • V1_18

      public static final GoVer V1_18
    • V1_19

      public static final GoVer V1_19
    • V1_20

      public static final GoVer V1_20
    • V1_21

      public static final GoVer V1_21
    • V1_22

      public static final GoVer V1_22
  • Field Details

  • Method Details

    • values

      public static GoVer[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GoVer valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMajor

      public int getMajor()
      Major value
      Returns:
      major
    • getMinor

      public int getMinor()
      Minor value
      Returns:
      minor
    • isAtLeast

      public boolean isAtLeast(GoVer otherVersion)
      Compares this version to the specified other version and returns true if this version is greater than or equal to the other version.
      Parameters:
      otherVersion - version info to compare
      Returns:
      true if this version is gte other version
    • parse

      public static GoVer parse(String s)
      Parses a version string ("1.2") and returns the matching GoVer enum instance, or UNKNOWN if no matching version or bad data.
      Parameters:
      s - string to parse
      Returns:
      GoVer enum instance, or UNKNOWN
    • fromProgramProperties

      public static GoVer fromProgramProperties(Program program)
    • setProgramPropertiesWithOriginalVersionString

      public static void setProgramPropertiesWithOriginalVersionString(Options props, String s)