path_util

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 64

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(fpath string) bool

func FindModuleRoot

func FindModuleRoot(path string, rootCode string) (string, bool)

func FindRoot

func FindRoot(path string, rootCode string, objName string) (string, bool)

func Free5gcPath

func Free5gcPath(path string) string

Free5gcPath ...

  • Author: Roger Chu aka Sasuke *
  • This package is used to locate the root directory of gofree5gc project
  • Compatible with Windows and Linux *
  • Please import "github.com/free5gc/path_util" *
  • Return value:
  • A string value of the relative path between the working directory and the root directory of the gofree5gc project *
  • Usage:
  • path_util.Free5gcPath("your file location starting with gofree5gc") *
  • Example:
  • path_util.Free5gcPath("free5gc/abcdef/abcdef.pem")

func GetParentDirectory

func GetParentDirectory(dirctory string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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