Skip to content

Commit

Permalink
Group var declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Jan 1, 2025
1 parent b4aabd3 commit 5f9867c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mmap_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ import (
type memoryMap []byte

// Windows
var handleLock sync.Mutex
var handleMap = map[uintptr]windows.Handle{}
var (
handleLock sync.Mutex
handleMap = map[uintptr]windows.Handle{}
)

func mmap(fd int, length int) (data []byte, err error) {
h, errno := windows.CreateFileMapping(windows.Handle(fd), nil,
Expand Down

0 comments on commit 5f9867c

Please sign in to comment.