diff options
| author | Jeff Carr <[email protected]> | 2025-10-08 12:07:16 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-08 12:07:16 -0500 |
| commit | 1b8a6e514ee86b754025afbf310d669c44528473 (patch) | |
| tree | 4f5d6eb18c07f789e7c850048d249b73b8733d7b /populatePackagePB.go | |
| parent | 856825033081b57cb6beb1944c83ce675a792f93 (diff) | |
more apt values
Diffstat (limited to 'populatePackagePB.go')
| -rw-r--r-- | populatePackagePB.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/populatePackagePB.go b/populatePackagePB.go index 6bd3c48..1d9b900 100644 --- a/populatePackagePB.go +++ b/populatePackagePB.go @@ -7,7 +7,7 @@ import ( "go.wit.com/lib/config" ) -func setString(pb proto.Message, varname string, val string) (bool, error) { +func setString(pb proto.Message, varname string, varvalue string) (bool, error) { msg := pb.ProtoReflect() // This is the entry point to the reflection API. descriptor := msg.Descriptor() // Get the message's descriptor, which contains metadata about its fields. @@ -24,7 +24,7 @@ func setString(pb proto.Message, varname string, val string) (bool, error) { return false, config.ErrProtoVarNotString } - valueToSet := protoreflect.ValueOfString(varname) + valueToSet := protoreflect.ValueOfString(varvalue) // 6. If the field exists and is a string, get its value. // The value is returned as a protoreflect.Value. |
