第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

轉(zhuǎn)到模板: 如何打印數(shù)組[]字符串以<腳本類型=“application/ld+json”>

轉(zhuǎn)到模板: 如何打印數(shù)組[]字符串以<腳本類型=“application/ld+json”>

Go
ibeautiful 2022-10-04 17:12:52
[![在此輸入圖像描述][1]][1]我有1個數(shù)組字符串包含許多圖像URL,如何將其顯示在應用程序中/ ld + json請幫我解決這個問題!謝謝大家!這是可變類型切片包含許多圖像網(wǎng)址images := []string{            "abc.com/1.jpg",            "abc.com/2.jpg",            "abc.com/3.jpg",            "...",        }這是用 html 格式的腳本<script type="application/ld+json">{    "@context": "https://schema.org",    "@type": "NewsArticle",    "mainEntityOfPage": {        "@type": "WebPage",        "@id": "{{$currentUrl}}"    },    "headline": "{{$postTile}}",    "image": [        "*i want show imageUrl at here*",        "*i want show imageUrl at here*",        "*i want show imageUrl at here*",    ]}
查看完整描述

1 回答

?
LEATH

TA貢獻1936條經(jīng)驗 獲得超7個贊

只需在圖像上劃清界限,如@mkopriva評論中所述:

{{range .ImageSlice}}{{.}}{{end}}

試試這個操場

參考模板文檔


查看完整回答
反對 回復 2022-10-04
  • 1 回答
  • 0 關(guān)注
  • 81 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號