File: embedded_struct.go

package info (click to toggle)
golang-github-tinylib-msgp 1.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 836 kB
  • sloc: makefile: 47
file content (19 lines) | stat: -rw-r--r-- 373 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package _generated

//go:generate msgp

type GetUserRequestWithEmbeddedStruct struct {
	Common `msg:",flatten"`
	UserID uint32 `msg:"user_id"`
}

type GetUserRequest struct {
	RequestID uint32 `msg:"request_id"`
	Token     string `msg:"token"`
	UserID    uint32 `msg:"user_id"`
}

type Common struct {
	RequestID uint32 `msg:"request_id"`
	Token     string `msg:"token"`
}