-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
main.go
41 lines (32 loc) · 905 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package mobile
//go:generate gomobile help documentation doc.go
import (
"flag"
"fmt"
"os"
)
var (
gomobileName = "gomobile"
)
const documentationHeader = `// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by 'gomobile help documentation doc.go'. DO NOT EDIT.
`
type command struct {
run func(*command) error
Flag flag.FlagSet
Name string
Usage string
Short string
Long string
IconPath, AppName string
Version, Cert, Profile string
Build int
}
func (cmd *command) usage() {
fmt.Fprintf(os.Stdout, "usage: %s %s %s\n%s", gomobileName, cmd.Name, cmd.Usage, cmd.Long)
}