encoding/asn1.fieldParameters.defaultValue (field)
8 uses
encoding/asn1 (current package)
asn1.go#L1010: if params.defaultValue == nil {
asn1.go#L1014: v.SetInt(*params.defaultValue)
common.go#L80: defaultValue *int64 // a default value for INTEGER typed fields (maybe nil).
common.go#L128: ret.defaultValue = new(int64)
common.go#L129: *ret.defaultValue = i
marshal.go#L592: if params.optional && params.defaultValue != nil && canHaveDefaultValue(v.Kind()) {
marshal.go#L594: defaultValue.SetInt(*params.defaultValue)
marshal.go#L604: if params.optional && params.defaultValue == nil {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |