constants.go 305 B

123456789101112131415
  1. package internal
  2. const AttributeID = "_id"
  3. const AttributeOwner = "_owner"
  4. const AttributeCreated = "_created"
  5. const AttributeModified = "_modified"
  6. func TrimQuotes(s string) string {
  7. if len(s) >= 2 {
  8. if s[0] == '"' && s[len(s)-1] == '"' {
  9. return s[1 : len(s)-1]
  10. }
  11. }
  12. return s
  13. }