# tls-sig-api-v2-golang **Repository Path**: mirrors_tencentyun/tls-sig-api-v2-golang ## Basic Information - **Project Name**: tls-sig-api-v2-golang - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2025-08-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 说明 此项目为 tls-sig-api-v2 (对称密钥版本)golang 实现版本,请注意,之前版本的非对称密钥无法使用此版 api,如需使用请查看[这里](https://github.com/tencentyun/tls-sig-api-golang)。 ## 使用 ``` go import ( "github.com/tencentyun/tls-sig-api-v2-golang/tencentyun" "fmt" ) const ( sdkappid = 1400000000 key = "5bd2850fff3ecb11d7c805251c51ee463a25727bddc2385f3fa8bfee1bb93b5e" ) func main() { sig, err := tencentyun.GenUserSig(sdkappid, key, "xiaojun", 86400*180) if err != nil { fmt.Println(err.Error()) } else { fmt.Println(sig) } } ```