parser

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package parser contains parser for package name and path.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	PkgName string
	PkgPath string
}

Parser is used to parse package name and path from provided directory.

func (*Parser) Parse

func (p *Parser) Parse(dirPath string) error

Parse parses files in dirPath and sets PkgName and PkgPath.

Jump to

Keyboard shortcuts

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