/sudo

Bypasses restrictions on reflect

Primary LanguageGoMIT LicenseMIT

Sudo

go.dev Go Report Card SourceGraph

sudo is a package to make reflect more powerful (and dangerous).

It exports a single function, Sudo, which when passed a reflect.Value, will return a new reflect.Value with the read-only restrictions removed.