Debian Codegraph @

_test/struct55.go

raw symbols SCIP
1 package main
2
3 import (
4 "log"
5 "os"
6 )
7
8 type Logger struct {
9 m []*log.Logger
10 }
11
12 func (l *Logger) Infof(format string, args ...interface{}) {
13 l.m[0].Printf(format, args...)
14 }
15
16 func main() {
17 l := &Logger{m: []*log.Logger{log.New(os.Stdout, "", log.Lmsgprefix)}}
18 l.Infof("test %s", "test")
19 }
20
21 // Output:
22 // test test