åé¡ã®ããå®è£ ãã¿ã¼ã³ å ±éå®è£ 以ä¸ã®ãã㪠applog ããã±ã¼ã¸ä¸ã®ãã¬ã¼å®è£ ãèãã¾ããããããã§ã¯ Go æ¨æºã® log.Logger ãã©ãããã¦ãã¾ããï¼æ§ã ãªå®è£ ã«æ¡å¼µã§ãããã¨ãæ³å®ãã¦ãã¾ãã package applog import ( "fmt" "log" "os" ) type Logger interface { Info(message string) Error(message string) } func NewLogger() Logger { return &logger{ inner: log.New(os.Stdout, "", log.LstdFlags), } } var _ Logger = (*logger)(nil) type logger struct { inner *log.Logger } func (l *logger)
{{#tags}}- {{label}}
{{/tags}}