di

package
v0.0.0-...-ac00eea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package di is dependency injection to image convert cil tool.

Index

Constants

This section is empty.

Variables

View Source
var Converts = map[string]Converter{}

Functions

func Register

func Register(key string, convert Converter)

Register sets command to converts.

Types

type Converter

type Converter interface {
	Decode(r io.Reader) (image.Image, error)
	Encode(w io.Writer, m image.Image) error
}

Converter is interface that has Decode and Encode function.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL