fmtpath

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package fmtpath formats paths for C++ generated files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetModuleName

func SetModuleName(name string)

SetModuleName sets the module name so that go.mod is not used. Should be used only for testing.

Types

type Functions added in v0.5.0

type Functions struct{}

Functions provided by the package.

func (Functions) HeaderGuard added in v0.5.0

func (Functions) HeaderGuard(guard string) string

HeaderGuard formats the string for header guards.

func (Functions) HeaderPath added in v0.5.0

func (Functions) HeaderPath(path string) string

HeaderPath formats the string for header guards.

func (Functions) Namespace added in v0.5.0

func (Functions) Namespace(path string) string

Namespace returns the C++ namespace.

func (Functions) PackagePath added in v0.5.0

func (Functions) PackagePath(pkg *ir.Package) string

PackagePath prepares a package path.

Jump to

Keyboard shortcuts

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