MCPcopy
hub / github.com/cloudreve/cloudreve / Sets

Function Sets

pkg/boolset/boolset.go:69–73  ·  view source on GitHub ↗

Sets set BooleanSet values in batch.

(val map[T]bool, bs *BooleanSet)

Source from the content-addressed store, hash-verified

67
68// Sets set BooleanSet values in batch.
69func Sets[T constraints.Integer](val map[T]bool, bs *BooleanSet) {
70 for flag, v := range val {
71 Set(flag, v, bs)
72 }
73}
74
75// Set sets a BooleanSet value.
76func Set[T constraints.Integer](flag T, enabled bool, bs *BooleanSet) {

Callers 12

initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
initFunction · 0.92
migrateNodeMethod · 0.92
migrateGroupMethod · 0.92
migrateAdminGroupFunction · 0.92
migrateUserGroupFunction · 0.92
migrateAnonymousGroupFunction · 0.92
migrateMasterNodeFunction · 0.92

Calls 1

SetFunction · 0.85

Tested by

no test coverage detected