Fails with error

Open Beginner friendly
#14 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Domain
cli, tooling

Research direction

The error 'unrecognized function: loadReadOnly' suggests a mismatch between the generated code and the Go sync package API. Look at the generator code in cmd/syncmap/main.go and the template files to see how sync.Map functions are referenced. Check the Go version compatibility and update the template to use the correct function names from the current sync.Map implementation.

Written by the indexing model from the issue text.

Description

➜ go version                                              
go version go1.23.2 darwin/arm64

➜ go run github.com/a8m/syncmap -name IntMap "map[int]int"
syncmap: unrecognized function: loadReadOnly

exit status 1

Dominant language
Go
Stars
256
Forks
17
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from a8m/syncmap

All issues in a8m/syncmap

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.