我正在使用 azure devops 包來查詢服務端點串列。
我呼叫函式: func (client ClientImpl) GetServiceEndpoints(ctx context.Context, args GetServiceEndpointsArgs) ( []ServiceEndpoint, error)
serviceendpoint 的回傳型別定義如下

如您所見,陣列中的每個值都包含 azure devops 中的一段實際 ID。
uj5u.com熱心網友回復:
UUID 型別有一個String 方法:
func (uuid UUID) String() string
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/438851.html
標籤:走
上一篇:GitHubActions-在Golang代碼中設定自定義操作的兩個輸出名稱
下一篇:在Go中組合不同的排序
