1. Ross Light
  2. stackexchange

Commits

Ross Light  committed acbf3ca

Add Version constant

  • Participants
  • Parent commits 8d60abc
  • Branches default

Comments (0)

Files changed (1)

File stackexchange.go

View file
  • Ignore whitespace
 package stackexchange
 
 // Root is the Stack Exchange API endpoint.
-const Root = "https://api.stackexchange.com/2.1"
+const Root = "https://api.stackexchange.com/" + Version
+
+// Version is the API version identifier.
+const Version = "2.1"