1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-05 07:40:24 +08:00
Files
go-docx/id.go
2023-02-27 16:12:56 +08:00

11 lines
194 B
Go

package docx
func (f *Docx) IncreaseID(name string) (n uintptr) {
f.slowIDsMu.Lock()
n, _ = f.slowIDs[name] //nolint: go-staticcheck
n++
f.slowIDs[name] = n
f.slowIDsMu.Unlock()
return
}