ã«ãã£ã¢ããã®SMSã§å§ãŸã£ãã¹ããŒãªãŒã®2çªç®ã®éšåã¯ãããé»è©±ããªãã§ãããæžããŠã¯ãããªã!!!!ã
æåã®éšåã¯ãã¡ãã§ãã èªãã®ãé¢åãªäººã®ããã«ãç°¡åãªèŠçŽãããŸãã
4.5幎åãç§ã¯ãã®ããžãã¹ã«å®å šã«äžé©åãªèšèªãã€ãŸãPHPã§æå·é貚ãæžãå§ããã®ã¯ç¡è¬ã§ããã çµå±ãç§ã¯æžããŸããïŒç§ã¯é åºã§ãïŒããæŸèæã§æŸèæãæã«å ¥ããŸããããããäžè¬çã«æ©èœãããšããäºå®ã¯ãããçš®ã®éæ³ã§ããã
ç§ã¯ããã«ããªãã«èŠåããããšæããŸããç§ã¯ç¬åŠã®ããã°ã©ããŒã§ãååŠæŽã®ããããã°ã©ããŒã§ãããããŠããããç©ããã«èšãã°ãã³ãŒããæžãããšã¯çæ³çã§ã¯ãããŸããã
ããã¯ãã¹ãŠãç§ãã«ãã£ã¢ãšããååã®å¥³ã®åãšå¥ããåãæ¥ã«ïŒ2015幎4æ4æ¥ïŒGoãå匷ããŠæå·é貚ãæžãæããããšã«ãããšããäºå®ããå§ãŸããŸããã ã«ãã£ã¢ã§äœãèµ·ãã£ãŠãããã«èå³ããã人ã®ããã«ãç§ã¯ãã¿ãã¬ãããŸããããèå³ããªã人ã¯ã«ãã£ã¢ã«æ³šæãæããªãã§ãã ãã
ã«ãã£ã¢ã«ã€ããŠã®æåã®éšåãèªãã§ããªã人ã®ããã«
ãŸãããããã©ã®ããã«å§ãŸã£ãã®ãã説æããŸãã ç§ã¯2015幎åãã«åºäŒãç³»ãµã€ãã§ã€ã³ã¿ãŒãããã§åœŒå¥³ã«äŒã£ãã ããã«æã«èœã¡ãŸããã å€éšçã«ã¯ã圌女ã¯ç§ã®å¥œã¿ã«åã£ãŠããŸããã ç§ãã¡ã¯å
¬åãæ©ãåããåè«ãèšããç¬ãããã³çãããå¯ããªããŸãããç§ã¯å¥ããããããŸããã§ããã 挫ç»ãèŠãããã«é»è©±ããŸããã ã¿ã¯ã·ãŒã«ä¹ã£ãŠå°çããŸããã 圌ã¯éåžžã«é¢çœã挫ç»ã§ããã3人ã®ããŒããŒïŒä¹éŠ¬ãããªã³ã«ãããããã«æšªããã£ãŠãæ¶ãæµ®ãã¹ãŠç¬ããŸããã
å€æ¹ãç§ã¯ã«ãã£ã¢ãå€ãéãããšç¢ºä¿¡ããŠããŸãã ããããäœããã®çç±ã§ã圌女ã¯å®¶ã«åž°ãå¿ èŠããããšç¹°ãè¿ãå§ããŸããã ãããã§åœŒå¥³ã®æé£ãé£ã¹ãããšèšã£ãã ææ¥ã®æã«åœŒå¥³ãæé£ããšãããã«æé ããŠãã ããã ç§ã¯ã¿ã¯ã·ãŒãåŒãã ã圌女ã¯å»ã£ãã ç§ã¯å¹žãã«ç ããŸãã ç§ã¯èªåèªèº«ãçŸãã女ã®åã§ãé¢çœããŠé¢çœãã£ãã§ãã ç¿æ¥ãããã¹ãã¡ãã»ãŒãžãããã«ã¡ã¯ã äœããŠãã®ïŒã ç§ã¯èªåã®æ°æã¡ãèŠããŠããŸããç§ã¯æ¬åœã«å¥œããªå¥³ã®åãæžããã®ã§ã楜ããã£ãã§ãã ãããŠããã«ç§ãã¡ã¯åœŒå¥³ãšåã³äŒãããšã«ãªããŸãã...
ãã®æ¥ã¯äŒã£ãããšããªãã ãããŠæ¬¡ãã 圌女ã®é ã®äžã§äœãèµ·ãã£ãŠããã®ãããããŸãããã圌女ã¯çµ¶ããããŒãã«èããŸããã 2æ23æ¥ã«ã¯ç¥çŠããããŸããã§ããã
ã©ãããããããããããæ··ããããšã«ããŸããã ã«ãã£ã¢ã¯SMSãæžããŸããïŒãç§ã¯ããã«ããã¡ããç§ã¯ãã£ããã£ããŸãã
圌女ã¯çããŸããïŒãããæå³ã§ïŒã
ç§ïŒããã£ãšããªãã
圌女ïŒãããã§ãã
圌女ã®jeã¯ãªã³ã«ãªããŸããã 1æ¥åŸãäŒãããã«æåŸ ããã圌女ã¯åæããã
圌女ã®è¡åãåæããå°ãã°ãŒã°ã«ã§èª¿ã¹ããšããããNew Rulesã çŸä»£ã®å¥³ã®åã®ããã®æåããé¢ä¿ã®ç§å¯ã
å€æ¹ãç§ã¯æ¬ãèªãã§ããã®æ¬ããã®ã¢ããã€ã¹ã䜿ã£ãŠãäœããã®çç±ã§åœŒå¥³ãç§ãæããŠããããšã«æ°ä»ããŸããã
å€æ¹ãç§ã¯ã«ãã£ã¢ãå€ãéãããšç¢ºä¿¡ããŠããŸãã ããããäœããã®çç±ã§ã圌女ã¯å®¶ã«åž°ãå¿ èŠããããšç¹°ãè¿ãå§ããŸããã ãããã§åœŒå¥³ã®æé£ãé£ã¹ãããšèšã£ãã ææ¥ã®æã«åœŒå¥³ãæé£ããšãããã«æé ããŠãã ããã ç§ã¯ã¿ã¯ã·ãŒãåŒãã ã圌女ã¯å»ã£ãã ç§ã¯å¹žãã«ç ããŸãã ç§ã¯èªåèªèº«ãçŸãã女ã®åã§ãé¢çœããŠé¢çœãã£ãã§ãã ç¿æ¥ãããã¹ãã¡ãã»ãŒãžãããã«ã¡ã¯ã äœããŠãã®ïŒã ç§ã¯èªåã®æ°æã¡ãèŠããŠããŸããç§ã¯æ¬åœã«å¥œããªå¥³ã®åãæžããã®ã§ã楜ããã£ãã§ãã ãããŠããã«ç§ãã¡ã¯åœŒå¥³ãšåã³äŒãããšã«ãªããŸãã...
ãã®æ¥ã¯äŒã£ãããšããªãã ãããŠæ¬¡ãã 圌女ã®é ã®äžã§äœãèµ·ãã£ãŠããã®ãããããŸãããã圌女ã¯çµ¶ããããŒãã«èããŸããã 2æ23æ¥ã«ã¯ç¥çŠããããŸããã§ããã
ã©ãããããããããããæ··ããããšã«ããŸããã ã«ãã£ã¢ã¯SMSãæžããŸããïŒãç§ã¯ããã«ããã¡ããç§ã¯ãã£ããã£ããŸãã
圌女ã¯çããŸããïŒãããæå³ã§ïŒã
ç§ïŒããã£ãšããªãã
圌女ïŒãããã§ãã
圌女ã®jeã¯ãªã³ã«ãªããŸããã 1æ¥åŸãäŒãããã«æåŸ ããã圌女ã¯åæããã
圌女ã®è¡åãåæããå°ãã°ãŒã°ã«ã§èª¿ã¹ããšããããNew Rulesã çŸä»£ã®å¥³ã®åã®ããã®æåããé¢ä¿ã®ç§å¯ã
å€æ¹ãç§ã¯æ¬ãèªãã§ããã®æ¬ããã®ã¢ããã€ã¹ã䜿ã£ãŠãäœããã®çç±ã§åœŒå¥³ãç§ãæããŠããããšã«æ°ä»ããŸããã
8ãæã®çµæïŒã¢ããªã±ãŒã·ã§ã³ã¯ãWinïŒ 64/32 ïŒãOSXïŒ64/32ïŒãLinuxïŒ64/32ïŒãFreeBSDïŒ64/32ïŒã Android ã IOS ïŒèª°ããApp Storeã«ãããããããšã¯ãŒã«ã«ãªããŸãïŒã§å®è¡ãããŸãïŒ
åèšã³ãŒãã¯çŽ73kè¡ã§ãç°ãªãOSã®ã³ãŒãã¯æ°çŸè¡çšåºŠã§ãã
40k-åŠç/ãããã¯çæ/ tr-17ã17.5k-ã€ã³ã¿ãŒãã§ãŒã¹çšã³ã³ãããŒã©ãŒã15.5k-ãã³ãã¬ãŒã
PostgreSQLãSQLiteãMySQLããµããŒããããŠããŸãã
ç§ã®äœåããã¹ããã人ã«èŠåããŸã-ãã°ããããããããŸãããæéãããã°ã darwin @ dcoin.clubãŸãã¯ããã®PMã§ãããã«ã€ããŠæžããŠãã ããã ææ¡ãã¢ããã€ã¹ãæè¿ããŸãã
æåã®éšåã§ã¯ãWebãµãŒããŒãdcoinã§ã©ã®ããã«æ©èœãããã«ã€ããŠèª¬æããŸããã
ãã®èšäºã§ã¯ã HTML /ãã³ãã¬ãŒãã®äœ¿çšæ¹æ³ã«ã€ããŠèª¬æããŸã
ãã¿ãŒã³
Goã«ã¯ãhtmlããŒãžãçæããããã®éåžžã«äŸ¿å©ãªããã±ãŒãžããããŸã-html / templateã ä»çµã¿ãç解ããæãç°¡åãªæ¹æ³ã¯ã ãã®äŸãè©ŠããŠã¿ãããšã§ã ã éåžžããã³ãã¬ãŒãã¯åå¥ã®htmlãã¡ã€ã«ã«ä¿åãããŸãããplay.golang.orgã®äŸã§ã¯ãããããããããããã«ãã³ãã¬ãŒããgo-codeã«æ¿å ¥ããŠããŸãã
ãã³ãã¬ãŒãæ å ±ã®ã»ãšãã©ãgohugo.io/templates/go-templatesããååŸããŸãã
ãã³ãã¬ãŒãã¯ãã¡ãã§ãã åãã³ãã¬ãŒãã¯ããã®ååã®å®çŸ©{{define "templateName"}}ã§å§ãŸãã{{end}}ã§çµãããŸã
ãã³ãã¬ãŒãã䜿çšããã³ã³ãããŒã©ãŒã¯ã makeTemplateé¢æ°ãä»ããŠhtmlã³ãŒããåãåããŸãã htmlãã¡ã€ã«ã®ååããã³ãã¬ãŒãã®ååïŒ{{define}}ã§æå®ãããŠããïŒããã©ã¡ãŒã¿ãŒãæž¡ããŸãã
TemplateStr, err := makeTemplate("template_name", "templateName", &tplPage{ Alert: c.Alert, Lang: c.Lang, TxType: txType, TxTypeId: txTypeId})
TemplateStrã§åä¿¡ãããã€ãã»ããã¯content.goã«è»¢éããããã®çµæããã©ãŠã¶ãŒã¯çæãããhtmlããŒãžãåä¿¡ããŸã
ãã¹ãŠã®ãã³ãã¬ãŒãã®makeTemplateã«ãsignatures.htmlãalert_success.htmlãªã©ã®è¿œå ã®ãã³ãã¬ãŒããå«ããŸãã ãŸãããã³ãã¬ãŒãå ã®ããŒã¿ãåŠçããããã«äœ¿çšããããŠãŒã¶ãŒå®çŸ©é¢æ°ïŒFuncMapïŒãè¿œå ããŸãã
Katyaã«ã€ããŠ
äºæ¥ç®ãç§ãã¡ã¯ãã æ©ããŠããããã¹ãããŸããã ãã¹ãŠãè¯ãã£ãã ç§ã®SMSã«ã€ããŠãç§ã¯ããã«ããã¡ãããç§ã¯ã€ããã圌女ã¯ãç§ã®å¹žçŠã«ãäœãèšããªãã£ãã
ç§ã¯ãã®æ¬ã®åé¡ã«æ©ãŸãããããã«ããã°ãããèªäœã«æãããããã«æããã ç§ã¯çŽæ¥å°ããããšãæ¢ããŠããŸããã§ããã 圌ã¯äœãèªãã§ããã®ã ãããšæã£ãã 圌女ã¯ããã€ãã®èè ã«ååãä»ããŸããã å¿çåŠã«é¢ããæ¬ã«ã€ããŠå°ãããããšãã圌女ã¯èªåã§èªããšçããã
å¯ãã£ãã 家ã«åž°ããŸããã å æ¥ãªã³ã¯ã«è¡ãããšã«åæããŸããã
ç§ã¯ãã®æ¬ã®åé¡ã«æ©ãŸãããããã«ããã°ãããèªäœã«æãããããã«æããã ç§ã¯çŽæ¥å°ããããšãæ¢ããŠããŸããã§ããã 圌ã¯äœãèªãã§ããã®ã ãããšæã£ãã 圌女ã¯ããã€ãã®èè ã«ååãä»ããŸããã å¿çåŠã«é¢ããæ¬ã«ã€ããŠå°ãããããšãã圌女ã¯èªåã§èªããšçããã
å¯ãã£ãã 家ã«åž°ããŸããã å æ¥ãªã³ã¯ã«è¡ãããšã«åæããŸããã
ãã³ãã¬ãŒãã«å«ãŸãããã®
ãã³ãã¬ãŒãã«å¥ã®ãã³ãã¬ãŒããå«ããã«ã¯ã{{template "signatures"æ§é ã䜿çšããå¿ èŠããããŸãã }}ã æ«å°Ÿã®ãããã¯ã眲åãã³ãã¬ãŒãå ã®ãã¹ãŠã®ãã©ã¡ãŒã¿ãŒãåŠçããå¿ èŠãããããšã瀺ããŠããŸãããããããªããšããã©ã¡ãŒã¿ãŒã¯åŠçãããŸããã ã»ãšãã©ãã¹ãŠã®ãã³ãã¬ãŒãã«çœ²åãè¿œå ããŸããããã«äŸã瀺ããŸã
ãã©ã¡ãŒã¿
æ¯èŒ ã©ãã ãç°¡åãã瀺ãããã«ãããã€ãã®äŸãäžåºŠã«ç€ºããŸãã
{{if not .UserID}} <span></span> {{end}} {{if .UserID}} <span> </span> {{end}} {{if eq .UserID 0}} <span>UserID == 0</span> {{end}} {{if ne .UserID 0}} <span>UserID != 0</span> {{end}} {{if lt .UserID 0}} <span>UserID < 0</span> {{end}} {{if le .UserID 0}} <span>UserID <= 0</span> {{end}} {{if gt .UserID 0}} <span>UserID > 0</span> {{end}} {{if ge .UserID 0}} <span>UserID >= 0</span> {{end}}
{{.Lang.pool}-ã©ã³ã°ã¯å°å³ã§ãã ã€ãŸã ãã€ã³ããéããŠãããŒããããŒã«ãã§ããå€ãååŸããŸã
Katyaã«ã€ããŠ
çŽäžé±éãç§ã¯åœŒå¥³ã«æçŽãæžãããé»è©±ãããããŸããã§ããã 圌女ãæåã«é»è©±ãããã©ããã確èªããããšã«ããŸããã ããã¯ã«ãããã§ãããããã¯å°é£ã§ãããç§ã¯èŠãããããŸãããããããç§ã¯åœŒå¥³ã®åŒã³åºããåŸ
ã£ãŠããŸãããç§ã¯åœŒå¥³ãæ¬ããèŠåãç Žãããšãæã¿ãŸããã
ãã®çµæããããããŸããã ç§ã¯åœŒå¥³ã«æçŽãæžããæ ç»é€šã«åŒã°ããã 圌女ã¯ãä»æ¥ã¯ã§ããªããšèšã£ãã åŒã£è¶ããŸã 圌女ã¯ç§»åã®å©ããæåŠããŸããã
å°ãåã«èµ°ã£ãŠããããé»è©±ããªãã§ãããæžããŠã¯ãããªã!!!!ããšããåãããã¹ãã¡ãã»ãŒãžã®åŸã«ãVKã®ç§ã¯åœŒå¥³ã2幎éäœãã§ããå人ãèªããã«ãã£ã¢ãè¿ãã®ãå©ãããšèšããŸãã ã ã ããã圌女ã®å人ã¯ãç§ãé»è©±ããªãã£ãé±ã®éãã«ãã£ã¢ã¯éåžžã«å¿é ããŠããŠãç§ããã®é»è©±ãåŸ ã£ãŠãããšèšããŸããã 圌女ã¯ãŸããæåã®ããŒãã®åŸãã«ãã£ã¢ã¯æåéãåã³ã§èŒãããšèšããŸããã 圌女ã¯ãŸããèªæã®æ¬ãèªãã ããšããªããšä»ãå ããŸããã
ãã®çµæããããããŸããã ç§ã¯åœŒå¥³ã«æçŽãæžããæ ç»é€šã«åŒã°ããã 圌女ã¯ãä»æ¥ã¯ã§ããªããšèšã£ãã åŒã£è¶ããŸã 圌女ã¯ç§»åã®å©ããæåŠããŸããã
å°ãåã«èµ°ã£ãŠããããé»è©±ããªãã§ãããæžããŠã¯ãããªã!!!!ããšããåãããã¹ãã¡ãã»ãŒãžã®åŸã«ãVKã®ç§ã¯åœŒå¥³ã2幎éäœãã§ããå人ãèªããã«ãã£ã¢ãè¿ãã®ãå©ãããšèšããŸãã ã ã ããã圌女ã®å人ã¯ãç§ãé»è©±ããªãã£ãé±ã®éãã«ãã£ã¢ã¯éåžžã«å¿é ããŠããŠãç§ããã®é»è©±ãåŸ ã£ãŠãããšèšããŸããã 圌女ã¯ãŸããæåã®ããŒãã®åŸãã«ãã£ã¢ã¯æåéãåã³ã§èŒãããšèšããŸããã 圌女ã¯ãŸããèªæã®æ¬ãèªãã ããšããªããšä»ãå ããŸããã
ã«ã¹ã¿ã é¢æ°
å€æ°å ã®htmlã³ãŒãããšã¹ã±ãŒãããå¿ èŠããããŸãã ãããè¡ãã«ã¯ãé¢æ°ãè¿œå ããŸãã
funcMap := template.FuncMap{ "noescape": func(s string) template.HTML { return template.HTML(s) }, }
ãã¹ãŠã®ãŠãŒã¶ãŒå®çŸ©é¢æ°ã¯makeTemplateã§ã³ã³ãã€ã«ãããŸã ã 次ã®ããã«äœ¿çšããŸãã
{{noescape .Lang.htmlText}}
Katyaã«ã€ããŠ
3æ8æ¥ã«è¿ã¥ããŠããã ã«ãã£ã¢ã¯ãŸã ç§ãšäŒããããªãã£ãã ãããŠãç§ã¯æ¬åœã«åœŒå¥³ãç¥çŠããããšæã£ãŠããŸããã æåŸã«ãç§ã¯è³ªåã«ç«¯ãæããã 3æ8æ¥ã«äŒãããäºåºŠãšé»è©±ããŸããã ç§ãã¡ã¯ç§ãšäžç·ã«äŒæ¥ãç¥ãããšã«åæããŸããã
ç§ã¯åœŒå¥³ã®å¥œããªè±ãã¯ã€ã³ãªã©ãè²·ããŸãããäžæ¥äžåœŒå¥³ãšéããããã£ãã®ã§ããã圌女ã¯å€é£ã®æºåãã§ããŠããŸããã§ããã é©ããããšã«ã6æã«åœŒå¥³ã¯ã€ãã«æºåãæŽããŸããã ç§ã¯åœŒå¥³ãã¿ã¯ã·ãŒãšåŒãã ã
ç§ã¯åœŒå¥³ã®å¥œããªè±ãã¯ã€ã³ãªã©ãè²·ããŸãããäžæ¥äžåœŒå¥³ãšéããããã£ãã®ã§ããã圌女ã¯å€é£ã®æºåãã§ããŠããŸããã§ããã é©ããããšã«ã6æã«åœŒå¥³ã¯ã€ãã«æºåãæŽããŸããã ç§ã¯åœŒå¥³ãã¿ã¯ã·ãŒãšåŒãã ã
ç¯å²
ç¯å²ã¯ãã«ãŒãã®è§£æã«äœ¿çšãããŸãã ããããã®äŸã瀺ããŸã ã
{{range $k, $country := .Countries}} <option value='{{$k}}' {{if eq $k $.MyCountry}} selected {{end}}>{{$country}}</option> {{end}}
ã³ãŒããããããããäœãèµ·ãã£ãŠããã®ããæããã§ãã ãããã$ .MyCountryã«ã¯ç¹ã«æ³šæãæããããšæããŸãã $ãè¿œå ããªãå Žåã.MyCountryãã©ã¡ãŒã¿ãŒãžã®ã¢ã¯ã»ã¹ã¯ãããŸããã æåã¯ããã®ããšãããå¿ããŠãäœãæªãã®ããšé·ãéèããŠããŸããã ç¯å²å€ã®å ŽåãMyCountryãžã®ã¢ã¯ã»ã¹ã¯{{.MyCountry}}ãä»ããŠå床ååŸãããŸã
Katyaã«ã€ããŠ
ç§ã¯å°çããè±ããã¬ãŒã³ããèŽããŸããã 圌ã¯ã¯ã€ã³ã®ããã«ãéããŸããã 圌女ã¯ã¢ãã¿ãŒã®1ã€ã§ç§ã®å€ãPHPãœãŒã¹ãèŠãŸããã 圌女ã¯å°ãã-ãããã¯äœïŒã ç§ã¯ãããã¯ãã§ãŒã³ã«ã€ããŠãDcoinãå©çãåŸãããã®äººã
ã®èªç¶ãªæ¬²æ±ïŒããœãã¡ããç«ã¡äžãããªããïŒã®ãããã§ãäœçŸäžäººãã®å¿ãã€ããããšãã§ããæ®éã®é貚ãåæ£é貚ã«ã¹ã ãŒãºã«çœ®ãæããŠãæåºãåæ¢ããéææ§ã®ããæ°ããäžçãã§ããããšã«ã€ããŠè©±ããŸããéèã·ã¹ãã ã ã«ãã£ã¢ã¯äœãç解ããŸããã§ããã ãããã圌ãã¯ãã¹ãããŠæ ç»ãèŠãã çªç¶ãã¯ã€ã³ããªããªããç§ã¯åœŒå¥³ããã£ãšæ¬²ããããšå°ããŸããã圌女ã¯åœŒå¥³ã欲ãããšèšããŸããã ç§ã¯åºã«è¡ããŸããã
å€æ°
ãã³ãã¬ãŒãã«ç¬èªã®å€æ°ãäœæã§ããŸãã ããããã®äŸã瀺ããŸã ã
{{range $i, $pageType := .PagesArray}} {{$counter := ""}} {{if eq $pageType "funders"}} {{$counter := " <span class='count h6 bg-grey-dark white'>{{$.ProjectCountFunders}}</span>"}} {{else if eq $pageType "comments"}} {{$counter := " <span class='count h6 bg-grey-dark white'>{{$.ProjectCountComments}}</span>"}} {{end}} {{$counter}} {{end}}
ãã®äŸã§ã¯ãæ°ããå€æ°$ã«ãŠã³ã¿ãŒãäœæãããæ¡ä»¶ã«å¿ããŠå€ãå²ãåœãŠããããã®çµæãäžã«è¡šç€ºãããŸã
ããã³/ãŸãã¯
ããã³/ãŸãã¯ã®ä»äºã®è«çã¯ãç§ã«ãšã£ãŠã¯ããçããããšãå€æããŸããã
äŸïŒ
{{if and (eq .Start 1) (ne .BlockId 1) (gt .UserId 0)}}
.Start == 1ããã³.BlockIdïŒ= 1ããã³.UserId> 0ã®å Žå
{{if or (eq .Start 1) (ne .BlockId 1) (gt .UserId 0)}}
.Start == 1ãŸãã¯.BlockIdïŒ= 1ãŸãã¯.UserId> 0ã®å Žå
JSã³ãŒã
å¥ã®åé¡ã«ã¯ããªãæéãããããŸããã ã³ã³ãããŒã©ã§äœããã®çš®é¡ã®js-codeãçæããå¿ èŠãããå Žåãããšãã°ïŒ
var x="1";
次ã«ã{{ãSomeJSCode}}ãä»ããŠãã³ãã¬ãŒãã«åºåãããšã次ã®ããã«ãªããŸã
"var x=\"1\";"
解決ç1
noescapeã¯ããã§ã¯åœ¹ã«ç«ã¡ãŸããã æ°ããã«ã¹ã¿ã é¢æ°ãè¿œå ããå¿ èŠããããŸãã
"js": func(s string) template.JS { return template.JS(s) },
ãããŠããã³ãã¬ãŒãã§{{js .SomeJSCode}}ã䜿çšããŸã
決å®2
ã³ã³ãããŒã©ãŒã§ãtemplate.JSã¿ã€ãã䜿çšããŸãã 以åã«å€æ°æååãå€æããå ŽåïŒtemplate.JSïŒSomeJsStringVariableïŒã ãã®å Žåããã³ãã¬ãŒãèªäœã§{{.SomeJSCode}}ã衚瀺ããå¿ èŠããããŸã
Katyaã«ã€ããŠ
圌ã¯æ»ããã¯ã€ã³ã飲ãã ã 圌ã¯ãããµãŒãžãªã€ã«ãããããŸããã çŽ1æéãããµãŒãžãè¡ããŸããïŒå
æ¥ãç§ã¯ãã®ãããªãããã§ç¹å¥ã«å匷ããŸãã ïŒã ãããµãŒãžã¯ã¹ã ãŒãºã«ãã芪å¯ãªãã®ã«å€ããããã®çµæã圌女ã¯ãšã³ãã«ãã£ã³ã®æ¥æ¿ãªæŸåºãçµéšãããã®çŽåŸã«åœŒå¥³ã¯ç ããããšèšã£ãã ãããã¯äžäœäœã ïŒãç§ã¯æã£ãã äžè¬çã«ãå¯ãŸããã
次ã®éšåã«ç¶ããŸãã
次ã®éšåã«ç¶ããŸãã
ãããã«
次ã®èšäºã§ã¯ãããŒã¿ããŒã¹ãã·ã°ãã«ãä»ããã¢ããªã±ãŒã·ã§ã³ã®ã¹ã ãŒãºãªå®äºããããã¯ãã§ãŒã³ããã®ãããã¯ã®åŠçãGOã§ã®æå·åãšJSã§ã®åŸ©å·åãgomobileã®å€æŽæ¹æ³ãéç¥ã®è¿œå ãiOSããã³Androidã¢ããªã±ãŒã·ã§ã³ã®ããã¯ã°ã©ãŠã³ãã§ã®äœæ¥ã«ã€ããŠèª¬æããŸãã