diff options
| author | Mel <einebeere@gmail.com> | 2022-05-09 00:01:02 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-05-09 00:01:02 +0200 |
| commit | b09a14147d397904722ee7c25e4defc56135b96f (patch) | |
| tree | 694dc725528310f3a65d04785b8eea33908ce69f /pkg/libs/source/loc.go | |
| parent | b5a9660b6ac42bce27c746e76013c3ce5992743a (diff) | |
| download | jinx-b09a14147d397904722ee7c25e4defc56135b96f.tar.zst jinx-b09a14147d397904722ee7c25e4defc56135b96f.zip | |
Extract source walk part of scanner
Diffstat (limited to 'pkg/libs/source/loc.go')
| -rw-r--r-- | pkg/libs/source/loc.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/libs/source/loc.go b/pkg/libs/source/loc.go new file mode 100644 index 0000000..3089d3b --- /dev/null +++ b/pkg/libs/source/loc.go @@ -0,0 +1,10 @@ +package source + +type Loc struct { + Row int + Col int +} + +func NewLoc(row, col int) Loc { + return Loc{row, col} +} |
