Socket
Book a DemoInstallSign in
Socket

github.com/button-chen/typesafecontainer-go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/button-chen/typesafecontainer-go

v0.0.0-20250522021517-9f9f756ca939
Source
Go
Version published
Created
Source

Go 类型安全容器库

使用示例

1. 类型安全的 sync.Map

package main

import (
    "fmt"
    ts "github.com/button-chen/typesafecontainer-go/typesafecontainer"
)

func main() {
    // 创建一个类型安全的TMap(封装sync.Map)
    ssm := ts.TMap[string, string]{}

    ssm.Store("foo", "bar")
    fmt.Println(ssm.Load("foo"))
}

FAQs

Package last updated on 22 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.