17 lines
227 B
Go
17 lines
227 B
Go
|
|
//go:build llm_script
|
||
|
|
|
||
|
|
package main
|
||
|
|
|
||
|
|
type ioDiscard struct{}
|
||
|
|
|
||
|
|
func (ioDiscard) Write(p []byte) (int, error) {
|
||
|
|
return len(p), nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func emptyIfBlank(value string) string {
|
||
|
|
if value == "" {
|
||
|
|
return "none"
|
||
|
|
}
|
||
|
|
return value
|
||
|
|
}
|