carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1package launchctx
2
3func DecodeOperator(raw []byte) (LaunchContext, error) {
4 c, err := DecodeLaunch(raw)
5 if err != nil || c.Version != 1 {
6 return LaunchContext{}, ErrLaunch
7 }
8 return c, nil
9}
10
11func DecodeChecker(raw []byte) (LaunchContext, error) {
12 c, err := DecodeLaunch(raw)
13 if err != nil || c.Version != 2 {
14 return LaunchContext{}, ErrLaunch
15 }
16 return c, nil
17}
18