Skip to content

Instantly share code, notes, and snippets.

View djthorpe's full-sized avatar

David Thorpe djthorpe

View GitHub Profile
#!/bin/bash
#
# Build gstreamer for Raspberry Pi
# Edit the SRC and DEST environment variables at the top and then
# run this script. You'll need to add the following two envronment
# variables to your .profile
#
# LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${PREFIX}/lib"
# PATH="${PATH}:${PREFIX}/bin"
#
package main
import "fmt"
type XConfig struct {
Value int
}
type YConfig struct {
Value int
type Logger interface {
Driver
// Output logging messages
Fatal(format string, v ...interface{}) error
Error(format string, v ...interface{}) error
Warn(format string, v ...interface{})
Info(format string, v ...interface{})
Debug(format string, v ...interface{})
Debug2(format string, v ...interface{})
package main
import (
"fmt"
"os"
// Frameworks
gopi "github.com/djthorpe/gopi"
// Modules
_ "github.com/djthorpe/gopi/sys/logger"
)