-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Embedding?
Could this be cleaned up with some type of embedding?
package main
import (
"fmt"
"log"
"os"
)
type Job struct {
Command string
*log.Logger
}
func main() {
fmt.Println("Hello, playground")
job := &Job{"this", log.New(os.Stderr, "Job: ", log.Ldate)}
job.Print("sample")
}
Reference:
Metadata
Metadata
Assignees
Labels
No labels