variables.go 608 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Brawler
  3. *
  4. * Copyright 2019 Matthias Ladkau. All rights reserved.
  5. *
  6. * This Source Code Form is subject to the terms of the MIT
  7. * License, If a copy of the MIT License was not distributed with this
  8. * file, You can obtain one at https://opensource.org/licenses/MIT.
  9. */
  10. package rumble
  11. /*
  12. Variables accesses the variable scope of the function.
  13. */
  14. type Variables interface {
  15. /*
  16. SetValue sets a new value for a variable.
  17. */
  18. SetValue(varName string, varValue interface{}) error
  19. /*
  20. GetValue gets the current value of a variable.
  21. */
  22. GetValue(varName string) (interface{}, bool, error)
  23. }