mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
* Open stash in system tray on Windows/MacOS * Add desktop notifications * MacOS Bundling * Add binary icon Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
12 lines
253 B
Go
12 lines
253 B
Go
package json
|
|
|
|
type Encoder struct{}
|
|
|
|
// AppendKey appends a new key to the output JSON.
|
|
func (e Encoder) AppendKey(dst []byte, key string) []byte {
|
|
if dst[len(dst)-1] != '{' {
|
|
dst = append(dst, ',')
|
|
}
|
|
return append(e.AppendString(dst, key), ':')
|
|
}
|