gpt4 book ai didi

go - Golang 中 Make string 末尾的 `json:"make"` 是什么意思?

转载 作者:数据小太阳 更新时间:2023-10-29 03:35:36 25 4
gpt4 key购买 nike

<分区>

我正在处理一些 Golang 源代码,并且对下面的程序语法感到困惑。Golang 中 Make string 末尾的 json:"make" 是什么意思?

type Vehicle struct {
Make string `json:"make"`
Model string `json:"model"`
Reg string `json:"reg"`
VIN int `json:"VIN"`
Owner string `json:"owner"`
Scrapped bool `json:"scrapped"`
Status int `json:"status"`
Colour string `json:"colour"`
V5cID string `json:"v5cID"`
LeaseContractID string `json:"leaseContractID"`
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com