Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #9 from launchdarkly/sheena/ch101847/unixmillis
Browse files Browse the repository at this point in the history
[ch101847] Fix go type aliases
  • Loading branch information
Raymond Ho authored Mar 23, 2021
2 parents defdc9d + 882eebc commit aa63d1b
Show file tree
Hide file tree
Showing 4 changed files with 301 additions and 299 deletions.
18 changes: 13 additions & 5 deletions example/foo.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@ import (
"time"
)

type UnixMillis int64
type JsonMap map[string]interface{}
type DoubleAlias JsonMap

type FooResponse struct {
ID string `json:"id"`
StartDate time.Time `json:"startDate"`
Msg json.RawMessage `json:"msg"`
InnerFoos []InnerFoo `json:"foo"`
ID string `json:"id"`
StartDate time.Time `json:"startDate"`
EndDate UnixMillis `json:"endDate"`
Count int64 `json:"count"`
Msg json.RawMessage `json:"msg"`
InnerFoos []InnerFoo `json:"foo"`
Environments map[string]Environment `json:"environments"`
FreeForm interface{} `json:"freeForm"`
JsonMap JsonMap `json:"jsonMap"`
DoubleAlias DoubleAlias `json:"doubleAlias"`
}

type Environment struct {
Expand Down Expand Up @@ -38,4 +47,3 @@ func getAllFoos() {
func putFoo() {

}

Loading

0 comments on commit aa63d1b

Please sign in to comment.