Skip to content

adrianfalleiro/go-cups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-cups

Experimental Golang bindings for CUPS

Info

This is an experimental library that provides limited bindings to CUPS. This is my first attempt at using CGO.

Currently only working on OS X and printing test pages.

Usage

go get https://github.com/adrianfalleiro/go-cups

Example

package main

import (
    "fmt"

    cups "github.com/adrianfalleiro/go-cups"
)

func main() {
    printers := cups.NewDefaultConnection()
    for _, dest := range printers.Dests {
        fmt.Printf("%v (%v)\n", dest.Name, dest.Status())
    }

}

About

Experimental Golang bindings for CUPS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages