---
title: "Goland设置json标签自动生成格式为驼峰"
url: "https://johng.cn/programming/goland-json-tag-camelcase"
markdown_url: "https://johng.cn/programming/goland-json-tag-camelcase.md"
type: "doc"
section: "开发语言"
category: "开发语言 / Golang"
published: "2026-09-18"
updated: "2026-09-18"
description: "教你如何在 Goland IDE 中配置 JSON 标签的自动生成格式，使其遵循驼峰命名规范"
keywords: ["Goland", "JSON标签", "驼峰命名", "自动生成", "IDE配置", "开发工具"]
---

# Goland设置json标签自动生成格式为驼峰

注意`Expression`选择`camelCase`，并且参数为`fieldName() ` 

![](https://johng.cn/attachments/image2021-1-12_0-26-51.webp)

  

![](https://johng.cn/attachments/image2021-1-12_0-28-18.webp)
