Skip to content

unix: simplify inferFromPath#17

Open
dolmen wants to merge 1 commit into
thlib:mainfrom
dolmen-go:unix-simplify-inferFromPath
Open

unix: simplify inferFromPath#17
dolmen wants to merge 1 commit into
thlib:mainfrom
dolmen-go:unix-simplify-inferFromPath

Conversation

@dolmen
Copy link
Copy Markdown

@dolmen dolmen commented May 20, 2026

Refactor inferFromPath in tz_unix.go: use only string manipulation for zero allocations.

'/' is now hard-coded as the file path separator, but this is a fine assumption for this purely non-Windows implementation of TZLocal.

Refactor inferFromPath: use only string manipulation for zero
allocations.

'/' is now hard-coded as the file path separator, but this is a fine
assumption for this purely non-Windows implementation of TZLocal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant