go-ipp/README.md

34 lines
728 B
Markdown
Raw Normal View History

2019-03-10 17:37:55 +00:00
# go-ipp
2019-03-17 19:47:29 +00:00
2019-06-08 22:15:56 +00:00
[![Version](https://img.shields.io/github/release-pre/phin1x/go-ipp.svg)](https://github.com/phin1x/go-ipp/releases/tag/v1.1.0)
2019-03-17 19:58:40 +00:00
[![Licence](https://img.shields.io/github/license/phin1x/go-ipp.svg)](https://github.com/phin1x/go-ipp/blob/master/LICENSE)
2019-03-17 19:47:29 +00:00
## Go Get
To get the package, execute:
```
go get -u github.com/phin1x/go-ipp
2019-03-17 19:47:29 +00:00
```
## Features
* basic ipp 2.0 compatible Client
* extended client for cups server
* create custom ipp requests
2019-03-17 19:58:40 +00:00
* parse ipp responses and ipp control files
2019-03-17 19:47:29 +00:00
## Examples
Print a file
```go
client := ipp.NewIPPClient("printserver", 631, "user", "password", true)
2019-06-08 22:34:12 +00:00
client.PrintFile("/path/to/file", "my-printer", map[string]interface{}{})
2019-03-17 19:47:29 +00:00
```
## Licence
Apache Licence Version 2.0