fmtpath

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: Apache-2.0 Imports: 3 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 HeaderGuard

func HeaderGuard(guard string) string

HeaderGuard formats the string for header guards.

func HeaderPath

func HeaderPath(path string) string

HeaderPath formats the string for header guards.

func Namespace

func Namespace(path string) string

Namespace returns the C++ namespace.

func PackagePath added in v0.4.0

func PackagePath(path string) string

PackagePath prepares a package path.

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

This section is empty.

Jump to

Keyboard shortcuts

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