2019-01-01ãã1ã¶æéã®è¨äºä¸è¦§
public static class Something { private Map<String, String> prop; } ãJacksonã§serializeãã㨠{ "prop": { "foo": "bar" } } ã¨ï¼ãããã¬ãã«ã«propã®ãããªpropertyãåºã¦ããã®ã§å¾®å¦â¦â¦ã¨ãªãã·ãã¥ã¨ã¼ã·ã§ã³ãã¾ãã«ããããã¾ãï¼ã§ï¼ã©ãããã¨è¯ããã¨ãã㨠</string,>â¦
gowrtr (go writerã¨çºé³ãã¾ã) ã¨ããgoã®ã³ã¼ãçææ¯æ´ã©ã¤ãã©ãª (ã¸ã§ãã¬ã¼ã¿ç¾¤) ãæ¸ãã¾ããï¼github.comSynopsisã«æ¸ããããã«ï¼ package main import ( "fmt" "github.com/moznion/gowrtr/generator" ) func main() { generator := generator.Neâ¦
goã®structã«ã¨ã©ã¼å®ç¾©ãæ¸ãã¦ããã°è¯ãæãã§ãã¨ã©ã¼ãè¿å´ããé¢æ°ããã³ã¼ãçæãããã¼ã«ã§ããgo-errgenãæ¸ãã¾ããï¼github.comSynopsisã«æ¸ãã¦ããã¨ããï¼ package mypkg //go:generate errgen -type=myErrors type myErrors struct { FooErrâ¦
type Foo struct { Bar string `buz:"qux" iyan:"bakan"` } ã«ããã `buz:"qux" iyan:"bakan"` ãè¯ãæã㧠buz => "qux", iyan => "bakan" ã®ããã«åå¾ãããã¨ããã±ã¼ã¹ã§ã¯ä»¥ä¸ã®ããã«ããã¨ãã: tagKeyValue := reflect.StructTag(`buz:"qux" iyanâ¦