go.unsafe
1.26.11.1
dotnet add package go.unsafe --version 1.26.11.1
NuGet\Install-Package go.unsafe -Version 1.26.11.1
<PackageReference Include="go.unsafe" Version="1.26.11.1" />
<PackageVersion Include="go.unsafe" Version="1.26.11.1" />
<PackageReference Include="go.unsafe" />
paket add go.unsafe --version 1.26.11.1
#r "nuget: go.unsafe, 1.26.11.1"
#:package go.unsafe@1.26.11.1
#addin nuget:?package=go.unsafe&version=1.26.11.1
#tool nuget:?package=go.unsafe&version=1.26.11.1
go.unsafe
Hand-implemented C# counterpart of the Go standard library's
unsafepackage, by go2cs.
From C#, call this package through the static class go.unsafe_package; see Consuming converted Go from C#.
Package unsafe contains operations that step around the type safety of Go programs. In Go it is a compiler intrinsic with no Go source to convert; this package is its hand-maintained managed implementation — pointer reinterpretation, Sizeof/Alignof/Offsetof, and the Slice/String/SliceData/StringData constructors — built over the go2cs runtime's ж<T> box and pinned-buffer machinery.
This package is a hand-maintained implementation of the Go standard library's unsafe API rather than converted Go source (the original is a compiler intrinsic). The go2cs implementation is distributed under the same BSD-3-Clause license as the converted standard library, which can be found in the LICENSE file.
Artwork licensed under Creative Commons Attribution 3.0; see artwork attribution.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- go.lib (= 1.26.11.1)
NuGet packages (109)
Showing the top 5 NuGet packages that depend on go.unsafe:
| Package | Downloads |
|---|---|
|
go.internal.cpu
go.internal.cpu (net10.0 - Release) -- C# project converted from Go source |
|
|
go.internal.abi
go.internal.abi (net10.0 - Release) -- C# project converted from Go source |
|
|
go.internal.bytealg
go.internal.bytealg (net10.0 - Release) -- C# project converted from Go source |
|
|
go.internal.stringslite
go.internal.stringslite (net10.0 - Release) -- C# project converted from Go source |
|
|
go.runtime
go.runtime (net10.0 - Release) -- C# project converted from Go source |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.26.11.1 | 3,733 | 11/19/2026 |
| 1.26.10.3 | 3,495 | 11/9/2026 |
| 1.26.10.2 | 3,606 | 11/4/2026 |
| 1.26.10.1 | 3,419 | 10/26/2026 |
| 1.24.13.7 | 2,587 | 10/14/2026 |
| 1.24.13.6 | 2,535 | 10/12/2026 |
| 1.24.13.5 | 2,546 | 10/9/2026 |
| 1.24.13.4 | 2,563 | 10/6/2026 |
| 1.24.13.3 | 2,559 | 10/2/2026 |
| 1.24.13.2 | 2,509 | 9/24/2026 |
| 1.24.13.1 | 2,504 | 9/24/2026 |
| 1.23.12.3 | 2,530 | 9/8/2026 |
| 1.23.12.2 | 2,226 | 8/29/2026 |
| 1.23.12.1 | 2,466 | 8/26/2026 |
| 1.23.1.7 | 4,086 | 8/23/2026 |
| 1.23.1.6 | 3,363 | 8/11/2026 |
| 1.23.1.5 | 3,367 | 8/9/2026 |
| 1.23.1.4 | 3,322 | 8/8/2026 |
| 1.23.1.3 | 3,816 | 8/4/2026 |
| 1.23.1.2 | 4,521 | 7/27/2026 |