package
0.29.22
Repository: https://github.com/openconfig/ygot.git
Documentation: pkg.go.dev

# Functions

CallerName returns the name of the Go binary that is currently running.
CamelCaseNameExt returns the CamelCase name from the slice of extensions, if one of the extensions is named "camelcase-name".
EntryCamelCaseName returns the camel case version of the Entry Name field, or the CamelCase name that is specified by a "camelcase-name" extension on the field.
FindAllChildren finds the data tree elements that are children of a YANG entry e, which should have code generated for them.
GetOrderedEntryKeys returns the keys of a map of *yang.Entry in alphabetical order.
MakeNameUnique makes the name specified as an argument unique based on the names already defined within a particular context which are specified within the definedNames map.
OpenFile opens a file with the supplied name, logging and exiting if it cannot be opened.
ParentModuleName returns the name of the module or submodule that defined the supplied node.
ParentModulePrettyName returns the name of the module that defined the yang.Node supplied as the node argument.
SyncFile synchronises the supplied os.File and closes it.
TransformEntry makes changes to the given AST subtree returned by goyang depending on the compress behaviour.
TranslateToCompressBehaviour translates the set of (compressPaths, excludeState, preferOperationalState) into a CompressBehaviour.
TrimOrgPrefix checks each input organization prefix (e.g.
TypeDefaultValue returns the default value of the type t if it is specified.
WriteIfNotEmpty writes the string s to b if it has a non-zero length.

# Constants

ExcludeDerivedState excludes all values that are not writeable (i.e.
GoDefaultGNMIImportPath is the default import path that is used for the gNMI generated Go protobuf code in the generated output.
GoDefaultGoyangImportPath is the default path for the goyang/pkg/yang library that is used in the generated code.
GoDefaultYgotImportPath is the default import path used for the ygot library in the generated code.
GoDefaultYtypesImportPath is the default import path used for the ytypes library in the generated code.
PreferIntendedConfig generates only the "config" version of a field when it exists under both "config" and "state" containers of its parent YANG model.
PreferOperationalState generates only the "state" version of a field when it exists under both "config" and "state" containers of its parent YANG model.
Uncompressed does not compress the generated code.
UncompressedExcludeDerivedState excludes config false subtrees in the generated code.

# Type aliases

CompressBehaviour specifies how the set of direct children of any entry should determined.