Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/QuantumNous/new-api
/ Set
Struct
Set
types/set.go:3–5 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
package
types
2
3
type
Set[T comparable]
struct
{
4
items
map
[T]
struct
{}
5
}
6
7
// NewSet 创建并返回一个新的 Set
8
func
NewSet[T comparable]() *Set[T] {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected