Last active
August 1, 2022 05:29
-
-
Save NickSablukov/b7636321a87ad045cd986356ac46c098 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"os" | |
) | |
type MosaicBuilder struct { | |
logger *log.Logger | |
} | |
func NewMosaicBuilder() *MosaicBuilder { | |
return &MosaicBuilder{ | |
logger: log.New(os.Stderr, "[mosaic] ", log.LstdFlags), | |
} | |
} | |
func (b *MosaicBuilder) Build() error { | |
return nil | |
} | |
func main() { | |
builder := NewMosaicBuilder() | |
if err := builder.Build(); err != nil { | |
builder.logger.Fatal(err) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment