mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-05 07:40:24 +08:00
11 lines
194 B
Go
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
|
|
}
|