<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # Micro New[service] micro new命令是為微服務生成示例模板的快捷方式。 ## 用法 通過指定相對于$GOPATH的目錄路徑來創建一個新服務。 ``` micro new github.com/micro/foo ``` 運行的示例。 ``` micro new github.com/micro/foo creating service go.micro.srv.foo creating /Users/asim/checkouts/src/github.com/micro/foo creating /Users/asim/checkouts/src/github.com/micro/foo/main.go creating /Users/asim/checkouts/src/github.com/micro/foo/handler creating /Users/asim/checkouts/src/github.com/micro/foo/handler/example.go creating /Users/asim/checkouts/src/github.com/micro/foo/subscriber creating /Users/asim/checkouts/src/github.com/micro/foo/subscriber/example.go creating /Users/asim/checkouts/src/github.com/micro/foo/proto/example creating /Users/asim/checkouts/src/github.com/micro/foo/proto/example/example.proto creating /Users/asim/checkouts/src/github.com/micro/foo/Dockerfile creating /Users/asim/checkouts/src/github.com/micro/foo/README.md download protobuf for micro: go get github.com/micro/protobuf/{proto,protoc-gen-go} compile the proto file example.proto: protoc -I/Users/asim/checkouts/src \ --go_out=plugins=micro:/Users/asim/checkouts/src \ /Users/asim/checkouts/src/github.com/micro/foo/proto/example/example.proto ``` ### 選項 指定更多選項,如名稱空間,類型,fqdn和別名 ``` micro new --fqdn com.example.srv.foo github.com/micro/foo ``` ### 幫助 ``` NAME: micro new - Create a new micro service USAGE: micro new [command options] [arguments...] OPTIONS: --namespace "go.micro" Namespace for the service e.g com.example --type "srv" Type of service e.g api, srv, web --fqdn FQDN of service e.g com.example.srv.service (defaults to namespace.type.alias) --alias Alias is the short name used as part of combined name if specified ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看