_example

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2018 License: MIT Imports: 6 Imported by: 0

README

httpdoc example

This directory contains some examples of httpdoc.

To generate documentation, run the following command:

$ env HTTPDOC=1 go test -v

One example uses protocol buffer, message definition is in ../proto directory. To generate code from that, run the following command:

# Install protoc-gen-go if you don't have it
$ go get -u github.com/golang/protobuf/protoc-gen-go

$ protoc -I=./../proto --gofast_out=./ ../proto/message.proto

Documentation

Overview

Package httpdoc is a generated protocol buffer package.

It is generated from these files:

message.proto

It has these top-level messages:

UserProtoRequest
UserProtoResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL