dingo: flamingo.me/dingo/miniexample/logger Index | Files

package logger

import "flamingo.me/dingo/miniexample/logger"

Index

Package Files

service.go

type LogService Uses

type LogService struct {
    // contains filtered or unexported fields
}

LogService is a sample service to demonstrate logging

func (*LogService) DoLog Uses

func (s *LogService) DoLog(message string)

DoLog does a sample log

func (*LogService) Inject Uses

func (s *LogService) Inject(logger Logger) *LogService

Inject load our dependencies

type Logger Uses

type Logger interface {
    Log(message string)
}

Logger logs a message

Package logger is imported by 2 packages. Updated 2019-12-19. Refresh now. Tools for package owners.