mirror of
https://github.com/go-i2p/go-sam-go.git
synced 2025-06-17 06:35:31 -04:00

- Define and use a few constants for the sake of code maintainability - Change log package name to logger so it better reflects its purpose - Fix depredations - Drop unused private methods and constants - Create an auxiliary func newFromPrimary() to reduce code duplicacy. Also straight away type conversion doesn't seem to type-check. Got to explicitly create a new struct instance.
11 lines
176 B
Go
11 lines
176 B
Go
package raw
|
|
|
|
import logger "github.com/go-i2p/go-sam-go/logger"
|
|
|
|
var log = logger.GetSAM3Logger()
|
|
|
|
func init() {
|
|
logger.InitializeSAM3Logger()
|
|
log = logger.GetSAM3Logger()
|
|
}
|