file2proto

command module
Version: v0.0.0-...-f63e9cf Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 23 Imported by: 0

README

file2proto, a utility that can convert struct, mysql, json and http into proto

Install

go get -u github.com/2637309949/file2proto

Syntax

file2proto
  -i string
        Fully qualified uri path
  -o string
        Protobuf output file. (default "messages.proto")

Example

file2proto -i ./ -o messages.proto
2021/10/14 18:57:10 output file written to /helloworld-service/srv/types/messages.proto
file2proto -i "mysql://myppdb:myppdb@tcp(127.0.0.1:3306)/db_psycinves"
2021/10/14 18:57:10 output file written to /helloworld-service/srv/types/messages.proto
file2proto -i ./test.json
2021/10/15 23:21:05 output file written to messages.proto
file2proto -i "https://help.aliyun.com/api/v2/recommend/doc?idList=209974&limit=6&isMobile=false"
2021/10/15 23:16:32 output file written to messages.proto

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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