mirror of
https://github.com/anchore/syft.git
synced 2026-04-03 13:20:41 +02:00
* internalize majority of cmd package and migrate integration tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add internal api encoder Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * create internal representation of all formats Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * export capability to get default encoders Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * restore test fixtures Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
19 lines
269 B
Go
19 lines
269 B
Go
//build:ignore
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"golang.org/x/net/html"
|
|
"golang.org/x/term"
|
|
)
|
|
|
|
var test = html.ErrBufferExceeded
|
|
|
|
func main() {
|
|
t := term.NewTerminal(os.Stdout, "foo")
|
|
t.Write([]byte("hello anchore"))
|
|
t.Write([]byte(fmt.Sprintf("%v", test)))
|
|
}
|