mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-06-27 21:39:22 +00:00
Add vendor (steam)
This commit is contained in:
19
vendor/github.com/Philipp15b/go-steam/jsont/jsont.go
generated
vendored
Normal file
19
vendor/github.com/Philipp15b/go-steam/jsont/jsont.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
// Includes helper types for working with JSON data
|
||||
package jsont
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// A boolean value that can be unmarshaled from a number in JSON.
|
||||
type UintBool bool
|
||||
|
||||
func (u *UintBool) UnmarshalJSON(data []byte) error {
|
||||
var n uint
|
||||
err := json.Unmarshal(data, &n)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*u = n != 0
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user