token.go 481 B

1234567891011121314151617181920212223242526272829303132
  1. package ini
  2. type lineToken interface {
  3. isLineToken()
  4. }
  5. type lineTokenProfile struct {
  6. Type string
  7. Name string
  8. }
  9. func (*lineTokenProfile) isLineToken() {}
  10. type lineTokenProperty struct {
  11. Key string
  12. Value string
  13. }
  14. func (*lineTokenProperty) isLineToken() {}
  15. type lineTokenContinuation struct {
  16. Value string
  17. }
  18. func (*lineTokenContinuation) isLineToken() {}
  19. type lineTokenSubProperty struct {
  20. Key string
  21. Value string
  22. }
  23. func (*lineTokenSubProperty) isLineToken() {}