假設我有type Tags []string我有產生的代碼[]string:b := []string{"hello", "world"}我如何得到b它是類型Tags而不是[]string?
如何將基類型轉換為繼承它的類型?
慕尼黑8549860
2022-07-11 15:15:32