Skip to content

Package in Go for parsing Google Protocol Buffers.

Notifications You must be signed in to change notification settings

sonatard/pbparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 10, 2019
e036521 · Apr 10, 2019

History

1 Commit
Apr 10, 2019
Apr 10, 2019
Apr 10, 2019
Apr 10, 2019

Repository files navigation

pbparser

Package in Go for parsing Google Protocol Buffers. Not support to work on Windows.

Install

go get -u github.com/sonatard/pbparser

Usage

package main

import (
	"fmt"

	"github.com/sonatard/pbparser"
)

func main() {
	file := "sample.proto"
	imports := []string{"./", "PROTO_DIR"}
	fd, err := pbparser.ParseFile(file, imports...)
	if err != nil {
		// error handling
	}

	fmt.Printf("%v\n", fd)
}

About

Package in Go for parsing Google Protocol Buffers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages