mirror of
https://github.com/esimov/caire.git
synced 2025-09-27 04:45:53 +08:00
Modify doc.go
This commit is contained in:
13
doc.go
13
doc.go
@@ -5,18 +5,18 @@ both vertically and horizontally by eliminating the less important parts of the
|
|||||||
The package provides a command line interface, supporting various flags for different types of rescaling operations.
|
The package provides a command line interface, supporting various flags for different types of rescaling operations.
|
||||||
To check the supported commands type:
|
To check the supported commands type:
|
||||||
|
|
||||||
$ caire --help
|
$ caire --help
|
||||||
|
|
||||||
In case you wish to integrate the API in a self constructed environment here is a simple example:
|
In case you wish to integrate the API in a self constructed environment here is a simple example:
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/esimov/caire"
|
"github.com/esimov/caire"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
p := &caire.Processor{
|
p := &caire.Processor{
|
||||||
// Initialize struct variables
|
// Initialize struct variables
|
||||||
}
|
}
|
||||||
@@ -24,7 +24,6 @@ func main() {
|
|||||||
if err := p.Process(in, out); err != nil {
|
if err := p.Process(in, out); err != nil {
|
||||||
fmt.Printf("Error rescaling image: %s", err.Error())
|
fmt.Printf("Error rescaling image: %s", err.Error())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package caire
|
package caire
|
||||||
|
Reference in New Issue
Block a user