Skip to content

Commit

Permalink
Add kaitai.Struct: common interface providing Kaitai_IO() getter
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyCat committed Mar 28, 2024
1 parent 8af766f commit 2794522
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Further reading:

## Licensing

Copyright 2017-2022 Kaitai Project: MIT license
Copyright 2017-2024 Kaitai Project: MIT license

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
7 changes: 7 additions & 0 deletions kaitai/struct.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package kaitai

// Struct is the common interface guaranteed to be implemented by all types generated
// by Kaitai Struct compiler.
type Struct interface {
Kaitai_IO() *kaitai.Stream

Check failure on line 6 in kaitai/struct.go

View workflow job for this annotation

GitHub Actions / Test

undefined: kaitai
}

0 comments on commit 2794522

Please sign in to comment.