github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/template/fnc/README.md (about)

     1  # Template Function
     2  
     3  This is the Template function
     4  
     5  Generated with
     6  
     7  ```
     8  micro new github.com/micro/go-micro/examples/template/fnc --namespace=go.micro --alias=template --type=fnc --plugin=registry=etcd
     9  ```
    10  
    11  ## Getting Started
    12  
    13  - [Configuration](#configuration)
    14  - [Dependencies](#dependencies)
    15  - [Usage](#usage)
    16  
    17  ## Configuration
    18  
    19  - FQDN: go.micro.fnc.template
    20  - Type: fnc
    21  - Alias: template
    22  
    23  ## Usage
    24  
    25  A Makefile is included for convenience
    26  
    27  Build the binary
    28  
    29  ```
    30  make build
    31  ```
    32  
    33  Run the function once
    34  ```
    35  ./template-fnc
    36  ```
    37  
    38  Build a docker image
    39  ```
    40  make docker
    41  ```