Categorygithub.com/golang-infrastructure/go-tuple
modulepackage
0.0.0-20221215155811-4ed54fe7d579
Repository: https://github.com/golang-infrastructure/go-tuple.git
Documentation: pkg.go.dev

# README

Tuple

一、安装

go get -u github.com/golang-infrastructure/go-tuple

二、示例代码

package main

import (
	"fmt"
	"github.com/golang-infrastructure/go-tuple"
)

func main() {

	t2 := tuple.New2(1, "test")
	fmt.Println(t2)

}

# Packages

No description provided by the author
No description provided by the author

# Functions

Equals 比较值是否相同,如果实现了Comparable接口的话就使用接口的方法来比较,否则只简单的做等号比较.
No description provided by the author
New2FromSlice 从Slice创建元组,slice元素会从左到右解构赋值给元组,如果长度超过了的话超过的部分会忽略,如果长度不够不够的部分会保持对应类型的零值.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author

# Interfaces

No description provided by the author