Joe Brothers
  • Home

yaml

A collection of 1 post
닻
yaml

[Yaml] 앵커(anchor)

yaml에서 반복되는 부분을 줄일 수 있는 기능이 있는데, 바로 앵커(anchor)다. &로 정의하고, *로 사용할 수 있다. 사용 예시 단순 value anchored_content: &anchor_name TEST_STRING other_anchor: *anchor_name 위처럼 단순한 value를 정의하면, 아래 json과 동일하다 { "anchored_content": "TEST_STRING", "
13 9월 2023 2 min read
Page 1 of 1
Joe Brothers © 2025
  • Sign up
Powered by Ghost