forked from ProjectSegfault/publapi
workaround to allow lowercase in json while still exporting struct field
This commit is contained in:
parent
e934aa5a92
commit
2b3b221baf
24
main.go
24
main.go
@ -12,20 +12,20 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Userstruct struct {
|
type Userstruct struct {
|
||||||
Status int
|
Status int `json:"status"`
|
||||||
Online int
|
Online int `json:"online"`
|
||||||
Total int
|
Total int `json:"total"`
|
||||||
Users []Userinfo
|
Users []Userinfo `json:"users"`
|
||||||
}
|
}
|
||||||
type Userinfo struct {
|
type Userinfo struct {
|
||||||
Name string
|
Name string `json:"name"`
|
||||||
FullName string
|
FullName string `json:"fullName"`
|
||||||
Loc string
|
Loc string `json:"loc"`
|
||||||
Email string
|
Email string `json:"email"`
|
||||||
Desc string
|
Desc string `json:"desc"`
|
||||||
Website string
|
Website string `json:"website"`
|
||||||
Capsule string
|
Capsule string `json:"capsule"`
|
||||||
Online bool
|
Online bool `json:"online"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func Dedup(input string) string {
|
func Dedup(input string) string {
|
||||||
|
Loading…
Reference in New Issue
Block a user