text
stringlengths
11
6.3k
embedding
listlengths
768
768
func getCleanedEnv(envKey string) (value string) { value = os.Getenv(envKey) value = strings.TrimSpace(value) value = strings.TrimSuffix(value, "\r\n") value = strings.TrimSuffix(value, "\n") return value }
[ -0.4916585683822632, -0.11499769240617752, 0.6491616368293762, -0.30459460616111755, -0.1453147530555725, -0.10956672579050064, -0.30673858523368835, -0.6047953367233276, -0.11916593462228775, 0.22991551458835602, -0.1642124354839325, 1.2697513103485107, 0.20954333245754242, 1.335589528083...
func (mr *markdownRender) BlockCode(out *bytes.Buffer, text []byte, lang string) { var tmp bytes.Buffer mr.Renderer.BlockCode(&tmp, text, strings.ToLower(lang)) out.Write(bytes.Replace(tmp.Bytes(), tab, spaces, -1)) }
[ 0.7892388701438904, -0.18145476281642914, 0.4595928490161896, -0.06261303275823593, -0.969218909740448, 0.3136671185493469, -0.07650120556354523, -0.05755382031202316, -0.8420500755310059, 0.14855057001113892, 0.21423500776290894, 0.22176173329353333, -0.645546555519104, 0.5935118794441223...
func Markdown(raw []byte) []byte { htmlFlags := 0 | blackfriday.HTML_USE_XHTML | blackfriday.HTML_USE_SMARTYPANTS | blackfriday.HTML_SMARTYPANTS_FRACTIONS | blackfriday.HTML_SMARTYPANTS_LATEX_DASHES renderer := &markdownRender{ Renderer: blackfriday.HtmlRenderer(htmlFlags, "", ""), } extensions := 0 | ...
[ 0.08839038759469986, 0.030562426894903183, 0.5651457905769348, 0.30490532517433167, -0.44174864888191223, -0.35681283473968506, -0.21500414609909058, 0.42399388551712036, 0.9478133916854858, -1.1936346292495728, 0.6999992728233337, 0.07016974687576294, 0.31354597210884094, 0.79385888576507...
func NewSecondaryIndex(ctx *pulumi.Context, name string, args *SecondaryIndexArgs, opts ...pulumi.ResourceOption) (*SecondaryIndex, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.IncludeBaseData == nil { return nil, errors.New("invalid value for required ar...
[ 0.1649717390537262, -0.31623461842536926, 0.5311487913131714, -0.12461794912815094, -0.3188673257827759, -0.13763116300106049, -0.25590357184410095, -0.03628553822636604, 0.19526799023151398, -0.04327617213129997, -1.522572636604309, 0.645625114440918, 0.2841635048389435, -0.40563258528709...
func GetSecondaryIndex(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SecondaryIndexState, opts ...pulumi.ResourceOption) (*SecondaryIndex, error) { var resource SecondaryIndex err := ctx.ReadResource("alicloud:ots/secondaryIndex:SecondaryIndex", name, id, state, &resource, opts...) if err != nil { r...
[ 0.7440289855003357, -0.8415860533714294, 0.12135466933250427, -0.03435094282031059, -0.4379384219646454, -0.16541483998298645, -0.22479519248008728, -0.19088757038116455, 1.1535426378250122, -0.7727687358856201, -1.3550324440002441, 1.7218996286392212, 0.5008874535560608, -1.53114140033721...
func (o SecondaryIndexOutput) DefinedColumns() pulumi.StringArrayOutput { return o.ApplyT(func(v *SecondaryIndex) pulumi.StringArrayOutput { return v.DefinedColumns }).(pulumi.StringArrayOutput) }
[ 0.3695813715457916, -0.6794232726097107, 0.5867140293121338, 0.8301238417625427, 1.4588550329208374, 0.16243447363376617, 0.1542050540447235, -0.5138125419616699, -0.15315116941928864, -0.7991624474525452, -1.9496692419052124, 1.2745211124420166, 0.5662703514099121, -1.1052519083023071, ...
func (o SecondaryIndexOutput) IncludeBaseData() pulumi.BoolOutput { return o.ApplyT(func(v *SecondaryIndex) pulumi.BoolOutput { return v.IncludeBaseData }).(pulumi.BoolOutput) }
[ 1.1018742322921753, -0.15910619497299194, 0.7622880339622498, 0.5631358027458191, -0.33383965492248535, 1.700035810470581, -0.06965675204992294, 0.3902890384197235, 0.4523051083087921, -0.32981187105178833, -1.2047895193099976, 1.2675122022628784, -0.8387441635131836, -0.7451675534248352, ...
func (o SecondaryIndexOutput) IndexName() pulumi.StringOutput { return o.ApplyT(func(v *SecondaryIndex) pulumi.StringOutput { return v.IndexName }).(pulumi.StringOutput) }
[ 0.614147424697876, -0.9198658466339111, 0.3283974528312683, 0.23041938245296478, -0.5152518153190613, 0.14251893758773804, 0.3449406921863556, 0.6452171802520752, 0.41992607712745667, -0.22866438329219818, -0.6307598948478699, 1.297742247581482, 0.7971466779708862, -1.7222416400909424, -...
func (o SecondaryIndexOutput) IndexType() pulumi.StringOutput { return o.ApplyT(func(v *SecondaryIndex) pulumi.StringOutput { return v.IndexType }).(pulumi.StringOutput) }
[ 0.9850381016731262, -0.053517647087574005, 0.39725351333618164, 0.5531095862388611, 0.5304343104362488, 0.3255282938480377, 0.30794963240623474, 0.4487457275390625, 1.011468768119812, -0.5669119954109192, -0.8467379808425903, 1.5643963813781738, 0.20111972093582153, -1.5008924007415771, ...
func (o SecondaryIndexOutput) InstanceName() pulumi.StringOutput { return o.ApplyT(func(v *SecondaryIndex) pulumi.StringOutput { return v.InstanceName }).(pulumi.StringOutput) }
[ 0.02834255062043667, -0.654703676700592, 0.4046265184879303, -0.549574077129364, -0.6938268542289734, 0.6580808758735657, 0.2723611891269684, 0.6271829605102539, 0.03313300013542175, 0.12655434012413025, -0.04141800105571747, 1.2395598888397217, 0.023669863119721413, -1.4066758155822754, ...
func (o SecondaryIndexOutput) PrimaryKeys() pulumi.StringArrayOutput { return o.ApplyT(func(v *SecondaryIndex) pulumi.StringArrayOutput { return v.PrimaryKeys }).(pulumi.StringArrayOutput) }
[ -0.049018628895282745, -0.5178992748260498, 0.28318431973457336, 0.5266724824905396, 0.5925357937812805, 0.014216373674571514, -0.12859460711479187, -0.06329480558633804, 0.7386632561683655, 0.012637954205274582, -1.1772587299346924, 0.9369300603866577, -0.22074612975120544, -1.26920700073...
func (o SecondaryIndexOutput) TableName() pulumi.StringOutput { return o.ApplyT(func(v *SecondaryIndex) pulumi.StringOutput { return v.TableName }).(pulumi.StringOutput) }
[ 0.9843180775642395, -0.5262902975082397, 0.3649081289768219, 0.5867224931716919, -0.3111942410469055, -0.09370928257703781, 0.628526508808136, 0.3703058958053589, -0.2691185176372528, -0.4775943160057068, -0.3924540579319, 1.1538978815078735, 0.6399185061454773, -1.553284764289856, -0.05...
func NewPlugin( version string, dependencies []bufpluginref.PluginReference, registryConfig *bufpluginconfig.RegistryConfig, imageDigest string, sourceURL string, description string, ) (Plugin, error) { return newPlugin(version, dependencies, registryConfig, imageDigest, sourceURL, description) }
[ -0.36164602637290955, -0.41379284858703613, 0.3232068717479706, 0.07228750735521317, -0.25090131163597107, 0.01565353386104107, 0.6495585441589355, 0.5687781572341919, 0.7990884184837341, -0.44763386249542236, -1.4778081178665161, 0.88498455286026, 0.09265144169330597, 0.1791837364435196, ...
func PluginToProtoPluginRegistryType(plugin Plugin) registryv1alpha1.PluginRegistryType { registryType := registryv1alpha1.PluginRegistryType_PLUGIN_REGISTRY_TYPE_UNSPECIFIED if plugin.Registry() != nil { if plugin.Registry().Go != nil { registryType = registryv1alpha1.PluginRegistryType_PLUGIN_REGISTRY_TYPE_GO ...
[ -0.9340517520904541, -0.32059335708618164, 0.5162595510482788, -0.24095690250396729, 0.8956419229507446, -0.31994256377220154, 0.32394781708717346, 0.38824450969696045, 1.0176070928573608, 0.27761268615722656, -0.6712944507598877, 0.6464052200317383, -0.9084939360618591, -0.019295580685138...
func OutputLanguagesToProtoLanguages(languages []string) ([]registryv1alpha1.PluginLanguage, error) { languageToEnum := make(map[string]registryv1alpha1.PluginLanguage) var supportedLanguages []string for pluginLanguageKey, pluginLanguage := range registryv1alpha1.PluginLanguage_value { if pluginLanguage == 0 { ...
[ -1.150672435760498, -0.9142845869064331, 0.6495829820632935, -0.16573426127433777, -0.8881666660308838, -0.49665340781211853, 0.16306591033935547, -0.31527191400527954, 0.17901775240898132, 0.5143160223960876, -0.5006287097930908, -0.3185466229915619, -1.2487547397613525, 0.297151833772659...
func PluginRegistryToProtoRegistryConfig(pluginRegistry *bufpluginconfig.RegistryConfig) (*registryv1alpha1.RegistryConfig, error) { if pluginRegistry == nil { return nil, nil } registryConfig := &registryv1alpha1.RegistryConfig{ Options: bufpluginconfig.PluginOptionsToOptionsSlice(pluginRegistry.Options), } i...
[ -0.4339306056499481, -0.11949644237756729, 0.5683206915855408, -0.731008768081665, 0.6924344301223755, -0.782379686832428, 0.5375659465789795, 0.4818755090236664, 0.5901994705200195, 0.788267195224762, -0.6748614311218262, 0.8750098943710327, -0.6578617095947266, 0.07080695778131485, 0.4...
func MavenDependencyConfigToProtoRuntimeLibrary(dependency bufpluginconfig.MavenDependencyConfig) *registryv1alpha1.MavenConfig_RuntimeLibrary { return &registryv1alpha1.MavenConfig_RuntimeLibrary{ GroupId: dependency.GroupID, ArtifactId: dependency.ArtifactID, Version: dependency.Version, Classifier: de...
[ -1.4308319091796875, -0.34080350399017334, 0.2939615547657013, -0.8415035605430603, -0.5620138049125671, 0.38121169805526733, 0.4255048334598541, 0.39024490118026733, 0.10463984310626984, 0.6459352970123291, -0.2683010697364807, -0.2662998139858246, -0.7192651033401489, 0.21866446733474731...
func ProtoRegistryConfigToPluginRegistry(config *registryv1alpha1.RegistryConfig) (*bufpluginconfig.RegistryConfig, error) { if config == nil { return nil, nil } registryConfig := &bufpluginconfig.RegistryConfig{ Options: bufpluginconfig.OptionsSliceToPluginOptions(config.Options), } if config.GetGoConfig() !=...
[ -0.6482493877410889, -0.3015320599079132, 0.6280074119567871, -0.5442438125610352, 0.8611286282539368, -0.6240240931510925, 0.776275634765625, 0.8036534190177917, -0.04493647441267967, 0.4116949439048767, -0.6723823547363281, 0.6509311199188232, -0.525373637676239, 0.44821786880493164, 0...
func ProtoMavenConfigToMavenRegistryConfig(protoMavenConfig *registryv1alpha1.MavenConfig) (*bufpluginconfig.MavenRegistryConfig, error) { mavenConfig := &bufpluginconfig.MavenRegistryConfig{} if protoCompiler := protoMavenConfig.GetCompiler(); protoCompiler != nil { mavenConfig.Compiler = bufpluginconfig.MavenComp...
[ -0.4604092836380005, -0.3527297377586365, 0.5013160705566406, -0.7325887680053711, 0.24290268123149872, -0.5350756645202637, 0.12928694486618042, 0.9830983877182007, 0.07691283524036407, 0.1594335287809372, -1.1752604246139526, 0.4599246382713318, -0.3780185282230377, 0.9450875520706177, ...
func MavenProtoRuntimeConfigToRuntimeConfig(proto *registryv1alpha1.MavenConfig_RuntimeConfig) (bufpluginconfig.MavenRuntimeConfig, error) { libraries := proto.GetRuntimeLibraries() var dependencies []bufpluginconfig.MavenDependencyConfig for _, library := range libraries { dependencies = append(dependencies, Prot...
[ -0.538809061050415, -0.1581355184316635, 0.44351503252983093, -0.7023614645004272, -0.3558715283870697, -0.2603215277194977, -0.022726766765117645, 1.0314605236053467, 0.11244137585163116, 0.8163591623306274, -0.7742756009101868, 0.08020617812871933, -0.9586129188537598, 0.7002405524253845...
func MavenRuntimeConfigToProtoRuntimeConfig(runtime bufpluginconfig.MavenRuntimeConfig) *registryv1alpha1.MavenConfig_RuntimeConfig { var libraries []*registryv1alpha1.MavenConfig_RuntimeLibrary for _, dependency := range runtime.Deps { libraries = append(libraries, MavenDependencyConfigToProtoRuntimeLibrary(depend...
[ -1.0459623336791992, 0.09821677953004837, 0.5096244812011719, -0.9285420179367065, -0.782399594783783, -0.14321033656597137, -0.3221941292285919, 0.8969215154647827, 0.053838957101106644, 0.6590487957000732, -0.7493216395378113, 0.13365809619426727, -0.9482059478759766, 0.549777090549469, ...
func ProtoMavenRuntimeLibraryToDependencyConfig(proto *registryv1alpha1.MavenConfig_RuntimeLibrary) bufpluginconfig.MavenDependencyConfig { return bufpluginconfig.MavenDependencyConfig{ GroupID: proto.GetGroupId(), ArtifactID: proto.GetArtifactId(), Version: proto.GetVersion(), Classifier: proto.GetClass...
[ -0.5170031189918518, -1.023303747177124, 0.2833598256111145, -0.8092353940010071, -0.006194240879267454, -0.13645976781845093, 0.27187737822532654, 0.9515036344528198, -0.45723921060562134, -0.175372913479805, -1.167543649673462, -0.04134035110473633, -0.8258885741233826, 1.14202880859375,...
func goRuntimeDependencyToProtoGoRuntimeLibrary(config *bufpluginconfig.GoRegistryDependencyConfig) *registryv1alpha1.GoConfig_RuntimeLibrary { return &registryv1alpha1.GoConfig_RuntimeLibrary{ Module: config.Module, Version: config.Version, } }
[ -1.1332377195358276, -0.5349416136741638, 0.22857226431369781, -0.7469396591186523, 0.5222799777984619, 0.41853922605514526, 0.5577025413513184, 0.23376476764678955, -0.3154636025428772, 0.6980037689208984, -0.6857863068580627, 0.7223730087280273, -1.0479342937469482, 0.5061867237091064, ...
func protoGoRuntimeLibraryToGoRuntimeDependency(config *registryv1alpha1.GoConfig_RuntimeLibrary) *bufpluginconfig.GoRegistryDependencyConfig { return &bufpluginconfig.GoRegistryDependencyConfig{ Module: config.Module, Version: config.Version, } }
[ -0.8551976680755615, -0.5041635632514954, 0.279835969209671, -0.757491946220398, 0.7088717222213745, 0.34906619787216187, 0.5035277605056763, 0.65469890832901, -0.7453957796096802, 0.4614523649215698, -0.8683181405067444, 0.7409684062004089, -0.7279647588729858, 0.6351484656333923, 0.675...
func npmRuntimeDependencyToProtoNPMRuntimeLibrary(config *bufpluginconfig.NPMRegistryDependencyConfig) *registryv1alpha1.NPMConfig_RuntimeLibrary { return &registryv1alpha1.NPMConfig_RuntimeLibrary{ Package: config.Package, Version: config.Version, } }
[ -0.91413414478302, -0.44064563512802124, 0.24836841225624084, -0.8687748908996582, -0.08095269650220871, -0.14730557799339294, 0.2220088541507721, -0.010707186535000801, 0.08014237880706787, 0.356112539768219, -0.03839052841067314, -0.04034097492694855, -1.0568495988845825, 0.3167866170406...
func protoNPMRuntimeLibraryToNPMRuntimeDependency(config *registryv1alpha1.NPMConfig_RuntimeLibrary) *bufpluginconfig.NPMRegistryDependencyConfig { return &bufpluginconfig.NPMRegistryDependencyConfig{ Package: config.Package, Version: config.Version, } }
[ -0.6568024158477783, -0.3561439514160156, 0.25145798921585083, -0.7689342498779297, -0.008529512211680412, 0.1333683729171753, -0.08269532024860382, 0.8950556516647339, -0.16081839799880981, 0.08231884241104126, -0.30774879455566406, 0.1166377142071724, -1.1315985918045044, 0.8393805027008...
func PluginReferencesToCuratedProtoPluginReferences(references []bufpluginref.PluginReference) []*registryv1alpha1.CuratedPluginReference { if references == nil { return nil } protoReferences := make([]*registryv1alpha1.CuratedPluginReference, 0, len(references)) for _, reference := range references { protoRefe...
[ -0.5799663066864014, -0.9890878796577454, 0.4968850314617157, -0.1111229807138443, 1.2551155090332031, 0.03170034661889076, 0.20719005167484283, -0.6110295653343201, 0.24965468049049377, 0.5059553980827332, 0.13285791873931885, 1.8790621757507324, -0.6051145195960999, -0.36212480068206787,...
func PluginReferenceToProtoCuratedPluginReference(reference bufpluginref.PluginReference) *registryv1alpha1.CuratedPluginReference { if reference == nil { return nil } return &registryv1alpha1.CuratedPluginReference{ Owner: reference.Owner(), Name: reference.Plugin(), Version: reference.Version(), ...
[ 0.05639458820223808, -0.7092474699020386, 0.3598878085613251, -0.5515982508659363, 0.387882262468338, -0.5358391404151917, -0.08664918690919876, -0.6702505350112915, 0.47211799025535583, 0.7239946722984314, -0.27464234828948975, 1.9051929712295532, -0.37535515427589417, -0.6438369154930115...
func PluginIdentityToProtoCuratedPluginReference(identity bufpluginref.PluginIdentity) *registryv1alpha1.CuratedPluginReference { if identity == nil { return nil } return &registryv1alpha1.CuratedPluginReference{ Owner: identity.Owner(), Name: identity.Plugin(), } }
[ -0.14232414960861206, -0.5044109225273132, 0.4343569576740265, -0.16413716971874237, 1.022982120513916, -0.19829604029655457, -0.5668915510177612, -0.6351162791252136, 0.5814077258110046, 0.44253507256507874, -0.16075196862220764, 1.295377492904663, 0.14036275446414948, -0.4202937483787536...
func NewMasterKey(seed []byte) (*Key, error) { // Generate key and chaincode hmac := hmac.New(sha512.New, []byte("ed25519 seed")) _, err := hmac.Write(seed) if err != nil { return nil, err } intermediary := hmac.Sum(nil) // Split it into our key and chain code keyBytes := intermediary[:32] chainCode := inte...
[ 0.22576521337032318, -0.7907000780105591, 0.6015888452529907, 0.22410178184509277, -1.1021654605865479, -0.10496152937412262, -0.1811000257730484, 0.7707387804985046, 0.3978673815727234, 0.2004600316286087, -1.082848310470581, 0.7428022027015686, -0.7262015342712402, 0.2723618149757385, ...
func (key *Key) NewChildKey(childIdx uint32) (*Key, error) { if childIdx < FirstHardenedChild { return nil, ErrHardenedOnly } intermediary, err := key.getIntermediary(childIdx) if err != nil { return nil, err } // Create child Key with data common to all both scenarios childKey := &Key{ ChildNumber: child...
[ 0.522861897945404, 0.1113835871219635, 0.6221829056739807, 0.08237189799547195, 0.1661384254693985, 0.05160703882575035, 0.10418558120727539, -1.2117496728897095, -0.27991968393325806, 0.3493153750896454, -0.8569048643112183, 0.3543846309185028, -0.3717869818210602, 0.07713280618190765, ...
func NullableString(s string) nulls.String { if s == "" { return nulls.String{} } return nulls.NewString(s) }
[ 0.46902021765708923, -0.2095290571451187, 0.12726522982120514, 0.32485198974609375, -1.2224347591400146, -0.24839051067829132, -0.5695902109146118, -0.5311390161514282, 1.2171844244003296, -0.4627780318260193, 0.06035773083567619, -0.24922151863574982, 0.1353437602519989, -1.02047908306121...
func NullableTime(t time.Time) nulls.Time { if t.IsZero() { return nulls.Time{} } return nulls.NewTime(t) }
[ 0.509790301322937, -0.005047185346484184, 0.3620392382144928, 0.7873818874359131, -0.6500409245491028, -0.3525407314300537, -0.8696981072425842, 0.05981144681572914, 0.5357660055160522, 0.6465629935264587, -0.43190446496009827, -1.2848091125488281, -0.15541161596775055, 0.7166458368301392,...
func NullableInt64(value interface{}) nulls.Int64 { i, ok := value.(int64) if !ok { return nulls.Int64{} } return nulls.NewInt64(i) }
[ -0.13511013984680176, -0.14075210690498352, -0.03888840973377228, 1.3108428716659546, -0.8906952142715454, -0.7466926574707031, 0.12805886566638947, -0.7929065227508545, 0.35444870591163635, 0.010303355753421783, 0.1281096190214157, -0.7472668886184692, -1.0857857465744019, 0.2872626781463...
func NullableByteSlice(b []byte) nulls.ByteSlice { if bytes.Equal(b, []byte{}) { return nulls.ByteSlice{} } return nulls.NewByteSlice(b) }
[ 0.39838048815727234, -0.7445454001426697, 0.3595501184463501, 1.000934362411499, 0.02742120996117592, -0.6894398331642151, -1.125724196434021, -0.6338043212890625, 0.9313346147537231, 0.35145851969718933, -0.6129825711250305, -0.464311808347702, -0.7482685446739197, 0.7804372906684875, -...
func loggerWorker() { // Localise a persistent buffer for a worker, this does not need to be // garbage collected. buffer := make([]byte, 0, defaultBufferCapacity) var n int var err error structuredOutbound := ExtraFields{} for j := range jobsChannel { if j.Passback != nil { j.Passback <- struct{}{} con...
[ -0.23145119845867157, -0.33479106426239014, 0.9283075332641602, -0.9240952134132385, -0.6087661385536194, -0.3849852979183197, -0.29744115471839905, -0.2634684145450592, -0.8119175434112549, -0.38305509090423584, -0.510112464427948, 0.21278822422027588, -0.16564759612083435, 1.029485225677...
func (mw *multiWriterHolder) StageLogEvent(fn deferral, header, slName, spacer, timestampFormat, instance, level string, showLogSystemName, bypassWarning, structuredLog bool, fields map[Key]interface{}) { newJob := jobsPool.Get().(*job) //nolint:forcetypeassert // Not necessary from a pool newJob.Writers = mw.writers...
[ 0.4051803946495056, -0.5802716016769409, 0.6710785031318665, -0.3983596861362457, -0.8932244777679443, -0.2696918249130249, 0.5183280110359192, 0.5295887589454651, -0.365410178899765, -0.13652631640434265, -0.7985679507255554, 0.36753416061401367, 0.26681357622146606, 0.36521655321121216, ...
func multiWriter(writers ...io.Writer) (*multiWriterHolder, error) { mw := &multiWriterHolder{} for x := range writers { err := mw.add(writers[x]) if err != nil { return nil, err } } return mw, nil }
[ -0.7684763073921204, 0.43888184428215027, 0.332508385181427, 1.2465320825576782, -0.06577619910240173, -0.08452144265174866, -0.34162986278533936, 0.01641419157385826, 0.2641690969467163, -0.11684297770261765, -0.5639388561248779, -0.581040620803833, -0.836270809173584, 0.30793115496635437...
func (mw *multiWriterHolder) add(writer io.Writer) error { if writer == nil { return errWriterIsNil } for i := range mw.writers { if mw.writers[i] == writer { return errWriterAlreadyLoaded } } mw.writers = append(mw.writers, writer) return nil }
[ -0.6227619051933289, -0.45615631341934204, 0.44911742210388184, -0.1267533153295517, 0.29038313031196594, 0.3719678819179535, 0.26630067825317383, -0.12553372979164124, 0.3812723457813263, 0.24800625443458557, 0.029914844781160355, -0.17833825945854187, -0.704197347164154, 1.71766757965087...
func NthRest(seq Seq, n uint) Seq { return Drop(seq, n) }
[ -0.715552031993866, 0.21170075237751007, 0.20623928308486938, -0.7209545969963074, -0.9999101758003235, 0.0699324905872345, -0.7260720133781433, -0.7711012959480286, 0.9998666048049927, 0.8241668343544006, -0.5690552592277527, -0.3385466933250427, -0.4754548668861389, 0.09345638751983643, ...
func Nth(seq Seq, n uint) interface{} { return First(NthRest(seq, n)) }
[ 0.1918737143278122, -0.05895959958434105, 0.21924792230129242, 0.5514442324638367, -0.6083874106407166, -0.20875433087348938, -0.2616456151008606, 0.01827222853899002, 0.5760525465011597, 0.22185686230659485, -0.31571635603904724, 0.07360850274562836, 0.09146748483181, 0.2782418131828308, ...
func First(seq Seq) interface{} { if seq == nil { return nil } return seq.First() }
[ 0.07087335735559464, 0.21930243074893951, 0.2126217484474182, 0.6248984932899475, 0.48270851373672485, -1.4695316553115845, -0.35019198060035706, 0.6403090953826904, 0.7748591303825378, 0.6949622631072998, -0.5889233946800232, -0.03721548989415169, 0.8775039911270142, 1.0619484186172485, ...
func Second(seq Seq) interface{} { return Nth(seq, 1) }
[ 0.11216223984956741, -0.7395800948143005, 0.32382333278656006, 0.5309734344482422, -0.8902654647827148, -1.2934046983718872, -0.04436558485031128, -0.6082751154899597, 0.21344241499900818, 0.31664136052131653, -1.6207295656204224, 0.11090100556612015, 0.4803544878959656, 1.2218616008758545...
func Third(seq Seq) interface{} { return Nth(seq, 2) }
[ -0.9714251160621643, -0.2850351631641388, 0.3423272967338562, 0.4947148263454437, -0.7666178345680237, -0.393065869808197, -0.8920139074325562, 0.0005912197520956397, 0.6789669394493103, 0.2896578907966614, -1.3798805475234985, -0.10752870887517929, 0.3338202238082886, -0.17308714985847473...
func Fourth(seq Seq) interface{} { return Nth(seq, 3) }
[ -0.2597959339618683, -0.21983574330806732, 0.4586959183216095, 0.3058910667896271, -0.4385846257209778, -0.2363438457250595, -0.5974988341331482, -0.7183318734169006, -0.1146036759018898, 0.45817333459854126, -1.1032427549362183, -0.3003290891647339, -0.039482131600379944, -0.1019197329878...
func Fifth(seq Seq) interface{} { return Nth(seq, 4) }
[ -0.19678466022014618, -0.47543928027153015, 0.2891876995563507, 0.24631832540035248, -0.7763550877571106, -0.5694257020950317, 0.8110353350639343, -1.0769230127334595, -0.08566375821828842, 0.16014385223388672, -1.3583109378814697, -0.6147220730781555, 0.2063528448343277, 0.533757030963897...
func GetRuntimeStats() (result map[string]float64) { runtime.ReadMemStats(memStats) now = time.Now() diffTime = now.Sub(lastSampleTime).Seconds() result = map[string]float64{ "alloc": float64(memStats.Alloc), "frees": float64(memStats.Frees), "gc.pause_total": float64(memStats.PauseTotalNs...
[ 0.48628848791122437, -0.01560024544596672, 0.9390890598297119, -1.075746774673462, -0.3084537088871002, -0.49298009276390076, 0.0689128041267395, -1.1018967628479004, 0.18447788059711456, 0.2643982172012329, -0.32692569494247437, 0.09212269634008408, -0.7226238250732422, 0.8994289040565491...
func Walk(root string, walkFn filepath.WalkFunc) error { var e error info, err := os.Lstat(root) switch { case err == nil: e = walk(root, info, walkFn) case err == errNotFound: e = err default: e = walkFn(root, nil, err) } return e }
[ 0.6074073910713196, 0.25467449426651, 0.32498234510421753, 0.1878134310245514, 0.3529318869113922, -0.0031968329567462206, 0.7194855809211731, -0.030943738296628, -0.046709928661584854, -1.4537957906723022, -0.05361085385084152, 0.03689160197973251, 0.2751482129096985, 0.5811522006988525, ...
func (_m *ValidatorProvider) GetValidator() *validator.Validate { ret := _m.Called() var r0 *validator.Validate if rf, ok := ret.Get(0).(func() *validator.Validate); ok { r0 = rf() } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*validator.Validate) } } return r0 }
[ -0.6052088737487793, 0.2707167863845825, 0.7210610508918762, 0.4709263741970062, 0.22879484295845032, -0.7682539820671082, 0.5210558176040649, 0.38724571466445923, 0.5807082056999207, -0.7847024202346802, -0.10681835561990738, 0.23865331709384918, -0.36409667134284973, 0.4900059700012207, ...
func (_e *ValidatorProvider_Expecter) GetValidator() *ValidatorProvider_GetValidator_Call { return &ValidatorProvider_GetValidator_Call{Call: _e.mock.On("GetValidator")} }
[ -0.20611020922660828, 0.44000244140625, 0.6561365723609924, 0.4363650679588318, 0.09284651279449463, -0.21775035560131073, 0.0570501834154129, 0.03455539420247078, 0.8248116970062256, 0.1725989282131195, -0.20500338077545166, 0.29787617921829224, -0.11674679815769196, 0.34045588970184326, ...
func (_m *ValidatorProvider) Validate(ctx context.Context, req *web.Request, value interface{}) domain.ValidationInfo { ret := _m.Called(ctx, req, value) var r0 domain.ValidationInfo if rf, ok := ret.Get(0).(func(context.Context, *web.Request, interface{}) domain.ValidationInfo); ok { r0 = rf(ctx, req, value) } ...
[ -0.6829792857170105, -0.44635316729545593, 0.5626317262649536, 0.6998502612113953, 0.08851484209299088, 0.6513659358024597, 0.448295533657074, -0.3396855294704437, 0.27128204703330994, -0.6802682876586914, 0.32637718319892883, -0.33412185311317444, 0.3652507960796356, 0.9328745603561401, ...
func NewValidatorProvider(t mockConstructorTestingTNewValidatorProvider) *ValidatorProvider { mock := &ValidatorProvider{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }
[ -1.081065058708191, -0.5871363282203674, -0.34861570596694946, 0.40598419308662415, -0.3998866379261017, 0.7584391236305237, -0.03433183580636978, -0.24552017450332642, 0.47226646542549133, 0.07867172360420227, -0.3102101683616638, -0.4526199400424957, -0.2735144793987274, 0.67790800333023...
func MergeDefaultLogConfig(dst, defaults map[string]string) { for k, v := range defaults { if !builtInCacheLogOpts[k] { continue } if _, exists := dst[k]; !exists { dst[k] = v } } }
[ -0.9821467399597168, 0.9448102116584778, 0.34604182839393616, -0.08043308556079865, 0.2559587061405182, 0.32048094272613525, -1.5028660297393799, -0.08708806335926056, -0.839127242565155, 0.5998067259788513, -1.6157331466674805, -0.17012758553028107, -0.2519543468952179, 0.0442297533154487...
func (k DefaultHasher) Hash(r *http.Request) string { hasher := md5.New() hash := r.URL.RequestURI() + r.Method // This method always succeeds _, _ = hasher.Write([]byte(hash)) if r.Body != nil && r.Header.Get("chameleon-no-hash-body") == "" { var buf bytes.Buffer _, err := buf.ReadFrom(r.Body) if err != ni...
[ -0.0440334714949131, 0.5789240598678589, 0.7741715908050537, 0.46966609358787537, -0.2625660300254822, 0.6907058358192444, -0.2605556547641754, 0.2457440048456192, -0.31887322664260864, 0.06602451950311661, 0.27335506677627563, 0.27919837832450867, -0.20177452266216278, 0.47221237421035767...
func (c DefaultCommander) NewCmd(command string, stderr io.Writer, stdin io.Reader) *exec.Cmd { cmd := exec.Command("sh", "-c", command) if stderr != nil { cmd.Stderr = stderr } if stdin != nil { cmd.Stdin = stdin } return cmd }
[ 0.6771162748336792, -1.145749568939209, 0.5229888558387756, -0.033118486404418945, -0.0025852390099316835, 0.9175150394439697, -0.5197502970695496, 0.054317720234394073, -0.081833615899086, -1.1226297616958618, 1.091284990310669, 0.7232317924499512, 0.5810018181800842, 0.6718661189079285, ...
func (c DefaultCommander) Run(cmd *exec.Cmd) ([]byte, error) { out, err := cmd.Output() defer func() { // If this fails, there isn't much to do _ = cmd.Process.Kill() }() return out, err }
[ -0.3933652639389038, -0.3559078276157379, 0.6962375044822693, 0.6324383616447449, 0.017645634710788727, -0.6816306114196777, 0.2970901131629944, -0.3958025276660919, -0.5530935525894165, -0.3941335082054138, -0.4841575622558594, -0.396091490983963, -0.39599132537841797, 0.6674538254737854,...
func (r *request) MarshalJSON() ([]byte, error) { var body bytes.Buffer var bodyBytes []byte if r.Body != nil { _, err := body.ReadFrom(r.Body) if err != nil { return nil, err } bodyBytes = body.Bytes() r.Body = ioutil.NopCloser(bytes.NewReader(bodyBytes)) } return json.Marshal(serializedRequest{ B...
[ -0.7735470533370972, -0.18355602025985718, 0.6092310547828674, -0.343364953994751, -0.47808676958084106, -0.14708685874938965, -0.11705948412418365, 0.19995185732841492, 1.036792516708374, -0.8029349446296692, -0.19931218028068542, 1.1147254705429077, -0.33481305837631226, 0.56369602680206...
func (k CmdHasher) Hash(r *http.Request) string { encodedReq, err := json.Marshal(&request{r}) if err != nil { panic(err) } stdin := strings.NewReader(string(encodedReq)) var stderr bytes.Buffer cmd := k.NewCmd(k.Command, &stderr, stdin) out, err := k.Run(cmd) if err != nil { log.Printf("%v:\nSTDOUT:\n%v...
[ -0.1689642071723938, -0.2432822436094284, 1.0224370956420898, 0.2934308648109436, -0.7366324663162231, 0.9385911226272583, 0.30574318766593933, -0.3302616477012634, -0.40115872025489807, -0.33723968267440796, 0.30581989884376526, 0.3343040943145752, -0.0757836401462555, 0.706449031829834, ...
func TestMain(m *testing.M) { dao.PrepareTestForPostgresSQL() var code = m.Run() // clear test database var clearSqls = []string{ `DROP TABLE "access", "access_log", "admin_job", "alembic_version", "clair_vuln_timestamp", "harbor_label", "harbor_resource_label", "harbor_user", "img_scan_job", "img_scan_overvi...
[ 0.36121127009391785, 0.5665799379348755, 0.9114623665809631, 0.6192578673362732, 0.07276617735624313, 0.5736706852912903, 0.42818593978881836, -0.12452490627765656, -0.16281551122665405, 0.6392872929573059, 0.21116049587726593, 0.61385577917099, -0.49290356040000916, -0.3353837728500366, ...
func DeploymentList(client *kubernetes.Clientset, namespace string, name string) (*v1beta1.DeploymentList, error) { var selector = "org=" + name return client.ExtensionsV1beta1().Deployments(namespace).List(v1.ListOptions{LabelSelector: selector}) }
[ -0.5807102918624878, -0.3945431411266327, 0.465872198343277, -0.5842688679695129, -0.18793292343616486, -0.410903662443161, -1.251357913017273, -0.4436379671096802, 0.7421106696128845, 2.3052926063537598, -0.5101948380470276, 0.5453887581825256, 0.25608715415000916, 0.11673205345869064, ...
func (f *Fixer) QueueChain(cert *x509.Certificate, chain []*x509.Certificate, roots *x509.CertPool) { f.toFix <- &toFix{ cert: cert, chain: newDedupedChain(chain), roots: roots, cache: f.cache, } }
[ -0.28349030017852783, -0.02768070437014103, 0.32611578702926636, 0.6576447486877441, 0.6530546545982361, -0.45697247982025146, -0.18753580749034882, -0.038095708936452866, 0.0017957148374989629, -0.5982272028923035, -1.4165453910827637, 1.2471359968185425, 0.266217976808548, 0.736636400222...
func (f *Fixer) Wait() { close(f.toFix) f.wg.Wait() }
[ 0.07466411590576172, -0.4907849431037903, 0.15826089680194855, -0.2925485372543335, 0.07346044480800629, 0.39902326464653015, 0.9442429542541504, 0.4525105655193329, -1.4554169178009033, -1.3461382389068604, -0.3655107617378235, 0.565880537033081, 0.38868650794029236, 1.1115541458129883, ...
func (c chainSlice) Len() int { return len(c.chains) }
[ 0.0578489676117897, -0.571611762046814, -0.0038210824131965637, -0.5962918400764465, 0.9140446782112122, -1.4498345851898193, 0.4559401571750641, 0.21358875930309296, -0.6353364586830139, -0.748560905456543, -1.0427948236465454, 1.0663563013076782, -0.17286896705627441, 0.5029928088188171,...
func (c chainSlice) Less(i, j int) bool { chi := c.chains[i] chj := c.chains[j] for k := 0; k < min(len(chi), len(chj)); k++ { if !chi[k].Equal(chj[k]) { return bytes.Compare(chi[k].Raw, chj[k].Raw) < 0 } } return len(chi) < len(chj) }
[ 0.058668553829193115, -0.5133260488510132, 0.42230653762817383, -1.0659770965576172, -0.37368685007095337, -0.4802370071411133, -0.7569770216941833, -1.4722048044204712, -0.710018515586853, -0.35350868105888367, -1.085278868675232, 0.335593044757843, -1.2797729969024658, 0.376335084438324,...
func (c chainSlice) Swap(i, j int) { t := c.chains[i] c.chains[i] = c.chains[j] c.chains[j] = t }
[ -1.4326789379119873, -0.8342018127441406, 0.11565001308917999, -0.6870977878570557, 1.1443979740142822, -0.2939908802509308, -0.567427933216095, -0.2745164930820465, -1.5952481031417847, -0.0463736392557621, -0.902451753616333, 1.29750657081604, -0.39616456627845764, -0.6638545989990234, ...
func removeSuperChains(chains [][]*x509.Certificate) [][]*x509.Certificate { // Sort the list of chains using the sorting algorithm described above. // This will result in chains and their super chains being grouped together // in the list, with the shortest chain listed first in the group (i.e. a // chain, and the...
[ 0.2696281373500824, 0.051233332604169846, 0.5322574377059937, 0.3005463182926178, -0.5799490809440613, -0.5201706886291504, 0.49896928668022156, -0.12693946063518524, 0.4588621258735657, 0.21886076033115387, -1.1052711009979248, 0.4128747284412384, -1.2383694648742676, -0.00831929594278335...
func (s *subscription) get(w http.ResponseWriter, r *http.Request) { q := r.URL.Query() subscriber := Subscriber{ AccessToken: q.Get("access_token"), SubscriberNumber: q.Get("subscriber_number"), } if subscriber.AccessToken == "" || subscriber.SubscriberNumber == "" { w.WriteHeader(http.StatusBadRequest...
[ 0.2493634968996048, -0.42579567432403564, 0.7944236397743225, -0.1739593893289566, 0.18747617304325104, -0.5996007323265076, -1.500479817390442, -0.028684251010417938, -0.8605896234512329, -0.36049503087997437, 0.8203130960464478, 0.9444580078125, 0.20982009172439575, -0.06872063130140305,...
func (client *Client) Middleware() echo.MiddlewareFunc { return func(next echo.HandlerFunc) echo.HandlerFunc { return func(c echo.Context) error { if !client.isAllowedPathToCache(c.Request().URL.String()) { next(c) return nil } if client.cacheableMethod(c.Request().Method) { sortURLParams(c.Requ...
[ -0.35194462537765503, 0.13829083740711212, 0.9531278014183044, 0.20975010097026825, -0.4562665522098541, -0.5933491587638855, 0.059367623180150986, -0.8599056005477905, 0.6254156231880188, -0.2160792499780655, 0.17584681510925293, 0.09778653085231781, -0.33572524785995483, 0.16096878051757...
func BytesToResponse(b []byte) Response { var r Response dec := gob.NewDecoder(bytes.NewReader(b)) dec.Decode(&r) return r }
[ 0.5142205357551575, -0.35875701904296875, 0.11680959165096283, -0.9609164595603943, 0.3677888512611389, -0.7053502202033997, -0.825532078742981, -0.025908194482326508, 0.9426569938659668, -0.3102853298187256, -1.2067153453826904, -0.22507724165916443, -1.1957875490188599, -1.25605463981628...
func (r Response) Bytes() []byte { var b bytes.Buffer enc := gob.NewEncoder(&b) enc.Encode(&r) return b.Bytes() }
[ 0.16397684812545776, -0.2333025336265564, 0.23537886142730713, -1.0077414512634277, 0.7771602272987366, 0.41116097569465637, -1.4483131170272827, -0.9324148893356323, 1.074881911277771, -0.4340220093727112, -0.6395077705383301, 0.3258630633354187, -0.7113138437271118, -0.15817110240459442,...
func KeyAsString(key uint64) string { return strconv.FormatUint(key, 36) }
[ -1.171939730644226, -0.7339345812797546, 0.4768132269382477, -0.7695467472076416, -0.6587795615196228, 0.7567274570465088, -1.3579078912734985, -0.5954251885414124, 0.6776918768882751, 0.13936513662338257, 0.48984968662261963, -0.5117086172103882, 0.24789799749851227, 0.6006495356559753, ...
func NewClient(opts ...ClientOption) (*Client, error) { c := &Client{} for _, opt := range opts { if err := opt(c); err != nil { return nil, err } } if c.adapter == nil { return nil, errors.New("cache client adapter is not set") } if int64(c.ttl) < 1 { return nil, errors.New("cache client ttl is not ...
[ -0.656867265701294, 0.17063482105731964, 0.4391941428184509, 0.6655586361885071, -0.24464023113250732, -0.0919957384467125, 0.2034410685300827, -1.0326392650604248, 0.13362637162208557, 0.2249012440443039, 0.235566183924675, 0.3279302418231964, -0.41542673110961914, -0.4368436634540558, ...
func ClientWithAdapter(a Adapter) ClientOption { return func(c *Client) error { c.adapter = a return nil } }
[ 0.5810651779174805, -0.6064329743385315, 0.11542348563671112, -0.6229137182235718, -1.4607311487197876, -0.004545469768345356, 0.5224132537841797, -1.127876877784729, 0.9643474221229553, -0.215661883354187, -0.21206294000148773, 0.022129271179437637, 0.8448225259780884, -0.1361216455698013...
func ClientWithTTL(ttl time.Duration) ClientOption { return func(c *Client) error { if int64(ttl) < 1 { return fmt.Errorf("cache client ttl %v is invalid", ttl) } c.ttl = ttl return nil } }
[ 0.2919091582298279, -0.16522808372974396, 0.21912002563476562, -0.493145614862442, -0.660790741443634, 0.09383878111839294, 0.29783573746681213, -0.8449194431304932, 0.4418605864048004, 0.7808773517608643, -0.9617249369621277, -0.7374226450920105, 1.0226444005966187, -0.5465096235275269, ...
func ClientWithRefreshKey(refreshKey string) ClientOption { return func(c *Client) error { c.refreshKey = refreshKey return nil } }
[ 0.30021393299102783, -0.611433744430542, 0.13878630101680756, 0.5594953298568726, -0.36183857917785645, -0.2619782090187073, 0.42123767733573914, -1.8317596912384033, 0.4610723853111267, 0.472187876701355, -0.5991587042808533, 0.2049025595188141, 0.6575422883033752, 0.2487611323595047, -...
func ClientWithMethods(methods []string) ClientOption { return func(c *Client) error { for _, method := range methods { if method != http.MethodGet && method != http.MethodPost { return fmt.Errorf("invalid method %s", method) } } c.methods = methods return nil } }
[ 0.3591762185096741, -0.19528444111347198, 0.284418523311615, -0.039857953786849976, -0.7391155958175659, 0.11252603679895401, -0.24370625615119934, -1.1917681694030762, 0.4824291169643402, -0.2228202074766159, -0.1315792351961136, -0.7599096298217773, -0.31826236844062805, 0.12462636083364...
func ClientWithRestrictedPaths(paths []string) ClientOption { return func(c *Client) error { c.restrictedPaths = paths return nil } }
[ 0.4447128474712372, 0.2068382054567337, -0.008451116271317005, 0.7205193638801575, -0.2777564823627472, 0.3798063099384308, 0.7687199711799622, -1.005784034729004, 0.5226043462753296, -0.30155083537101746, -0.17554710805416107, -0.5560302138328552, -0.444634348154068, -0.5578421950340271, ...
func (s *InterfaceStep) Type() interface{} { return TypeEmptyInterface }
[ -1.219266414642334, 0.21464423835277557, 0.32013460993766785, 1.065317988395691, 0.5536304712295532, 1.2483830451965332, 1.3526701927185059, -1.0273569822311401, 0.23068198561668396, -0.6305071711540222, -0.6573213338851929, -0.1316511482000351, -1.3105663061141968, 1.3640434741973877, 0...
func (s *InterfaceStep) String() string { return fmt.Sprint(s.value) }
[ 0.01126567367464304, -0.25383639335632324, 0.10189037024974823, 0.45796123147010803, -0.2885611355304718, 1.0214818716049194, 0.491279274225235, -1.2719613313674927, -0.6289273500442505, -0.1179351881146431, 0.16343265771865845, -0.04120849445462227, -0.39370471239089966, 0.740296006202697...
func (s *InterfaceStep) Int() (int, bool) { return 0, false }
[ -0.7963908910751343, -0.017769237980246544, 0.4280795454978943, 0.1750124990940094, -0.2723318338394165, 0.9698107242584229, 0.7774181365966797, 0.3837122321128845, -1.3322563171386719, 0.06122363731265068, -0.976719856262207, -0.6209134459495544, -0.43999427556991577, 1.3047096729278564, ...
func (s *InterfaceStep) Interface() interface{} { return s.value }
[ -0.8112069964408875, -0.20533426105976105, 0.22793804109096527, 0.7894410490989685, -0.5860642790794373, 0.43804532289505005, 0.30101004242897034, -0.2541557848453522, -0.006893941666930914, -0.49366942048072815, -0.5672994256019592, -0.029812041670084, -0.04330410063266754, 1.337558984756...
func NewInterfaceStep(i interface{}) *InterfaceStep { s := InterfaceStep{ value: i, } return &s }
[ -0.23336173593997955, 0.26413100957870483, -0.21114259958267212, 0.4182450473308563, -0.2882108986377716, 0.12465126812458038, 0.43058764934539795, -0.8611451983451843, -0.07690755277872086, -0.009219060651957989, -1.2683451175689697, -0.6916488409042358, -0.9483638405799866, 0.40531128644...
func (s *StringStep) Type() interface{} { return TypeString }
[ -0.2142593115568161, -0.6787251234054565, 0.1901983767747879, 0.3096073865890503, 0.14672896265983582, 0.5918964147567749, 0.8492108583450317, -1.051854133605957, 0.2899954915046692, -0.40190333127975464, 0.00774052320048213, 0.40582075715065, -0.9176799654960632, 0.7679618000984192, -0....
func (s *StringStep) String() string { return string(*s) }
[ 0.35827386379241943, -1.3313376903533936, -0.18537206947803497, 0.03436119109392166, -0.6769075989723206, 0.5021429657936096, 0.46143051981925964, -0.7920687794685364, -0.17581526935100555, -0.6825188994407654, -0.5196576118469238, 0.692270815372467, -0.11460978537797928, 0.344580858945846...
func (s *StringStep) Int() (int, bool) { return 0, false }
[ -0.5191940069198608, -0.6753387451171875, 0.4606418013572693, -0.5514904856681824, -0.638249933719635, 0.6552712917327881, 0.3611229360103607, 0.7333720922470093, -1.4671049118041992, 0.203264519572258, -0.6391832828521729, -0.29524171352386475, -0.43325933814048767, 0.6185434460639954, ...
func (s *StringStep) Interface() interface{} { return string(*s) }
[ -0.18567313253879547, -1.0097697973251343, 0.24078309535980225, -0.22619816660881042, -0.8975256085395813, 0.3495740592479706, -0.2416456937789917, -0.5125994682312012, 0.3465840816497803, -0.297223836183548, -0.5017998218536377, 0.5727770328521729, 0.01976207084953785, 0.4842089116573334,...
func NewStringStep(str string) *StringStep { s := StringStep(str) return &s }
[ 0.5194035768508911, -0.8550695180892944, -0.2965337634086609, -0.2751755714416504, -1.3140387535095215, -0.37492331862449646, -0.3822104334831238, -0.6180866360664368, -0.16551260650157928, -0.35462290048599243, -0.875847339630127, 0.30160170793533325, -0.9126808047294617, 0.13969106972217...
func (s *FieldStep) Type() interface{} { return TypeStructField }
[ -0.33958426117897034, 0.06947796791791916, 0.24802593886852264, 0.7966195940971375, 0.10452423989772797, 0.9321720004081726, 1.2940884828567505, -0.7140334248542786, 0.15678176283836365, -0.9225517511367798, -1.1685385704040527, -0.6155970096588135, -0.5545766353607178, 1.0444738864898682,...
func (s *FieldStep) String() string { return s.Name }
[ 0.08196579664945602, -0.8786992430686951, 0.021756617352366447, 0.34588226675987244, -0.797402560710907, 0.8773860931396484, 0.49153488874435425, -1.05845046043396, -0.7295693755149841, -0.2880311906337738, -1.471295714378357, -0.0890771821141243, 0.21211689710617065, 0.5573456883430481, ...
func (s *FieldStep) Int() (int, bool) { return 0, true }
[ -0.6645404100418091, -0.24373257160186768, 0.4715035855770111, -0.08400183171033859, -0.14169076085090637, 0.87211674451828, 0.4538961350917816, 0.789286732673645, -1.5400049686431885, -0.039916008710861206, -1.3677558898925781, -0.42248648405075073, -0.09682910144329071, 1.023843646049499...
func (s *FieldStep) Interface() interface{} { return *((*s).StructField) }
[ -0.5260157585144043, -0.12790076434612274, 0.20892433822155, 0.10882855206727982, -0.28479552268981934, 0.9697166681289673, 0.40639761090278625, -0.17479582130908966, 0.1303747445344925, -0.38912513852119446, -1.3063851594924927, -0.3518241345882416, -0.11634545773267746, 0.750559508800506...
func NewFieldStep(f *reflect.StructField) *FieldStep { return &FieldStep{ f, } }
[ 0.27614298462867737, 0.04351680353283882, -0.07462289184331894, 0.33264514803886414, -0.7239282131195068, 0.05489480867981911, -0.31221604347229004, -0.4717693328857422, -0.9355862140655518, -0.4528118371963501, -1.8134171962738037, -0.2623536288738251, -0.18049946427345276, 0.296757757663...
func (s *ArrayStep) Type() interface{} { return TypeArray }
[ -0.7306921482086182, -0.8052754998207092, 0.5296652913093567, 1.3490351438522339, 0.6431365013122559, 0.6310861110687256, 0.8262042999267578, -0.8272374868392944, 0.6845694184303284, -0.2617133855819702, -0.5051905512809753, 0.6096457839012146, -0.7227632403373718, 1.8100037574768066, 0....
func (s *ArrayStep) String() string { return strconv.Itoa(int(*s)) }
[ -0.06794340163469315, -0.9992668032646179, 0.2039366215467453, -0.0053212326020002365, -0.47713321447372437, 0.1827090084552765, 0.11519832909107208, -0.7645701766014099, -0.01377940271049738, -0.08356401324272156, -0.41225481033325195, 0.15448476374149323, 0.3722876310348511, 0.4870521724...
func (s *ArrayStep) Int() (int, bool) { return int(*s), true }
[ -0.3440895974636078, -0.21565812826156616, 0.39853623509407043, -0.15702514350414276, -0.9115391373634338, 0.20834170281887054, 0.3713054955005646, 0.42998766899108887, -0.44719943404197693, 0.26840323209762573, -0.9541679620742798, 0.180079847574234, 0.4387660622596741, 0.5579239130020142...
func (s *ArrayStep) Interface() interface{} { return int(*s) }
[ -0.6859221458435059, -0.28393226861953735, 0.4479687809944153, 0.3550207018852234, -0.6376359462738037, 0.25991111993789673, 0.3649444580078125, -0.5255458950996399, 0.7142032980918884, -0.466433048248291, -0.7681443691253662, 0.3412623107433319, 0.09489741921424866, 1.3039352893829346, ...
func NewArrayStep(i int) *ArrayStep { s := ArrayStep(i) return &s }
[ 0.1516045182943344, -0.45249852538108826, 0.289359450340271, 0.5324002504348755, -0.8526000380516052, -0.6854286193847656, -0.5439505577087402, -0.5884278416633606, -0.506873607635498, 0.06864067912101746, -1.426666259765625, -0.1764126867055893, -0.029222140088677406, 0.3806525766849518, ...
func (s *Steps) Join(step Step) Path { steps := NewSteps() steps.parent = s steps.step = step return steps }
[ 1.2562334537506104, -0.1890590786933899, 0.24357730150222778, 1.0816022157669067, -0.11971668899059296, 0.9877805709838867, 0.0842263326048851, 0.14428026974201202, -0.38288164138793945, -1.0601444244384766, -0.5270252227783203, -0.4844208359718323, 0.05357031896710396, 1.0034377574920654,...
func (s *Steps) Pop() (Step, Path) { return s.step, s.parent }
[ -0.2147483229637146, -0.2603146433830261, 0.5235229134559631, 0.5278028845787048, -0.4146154820919037, 0.43399184942245483, 0.4526537358760834, 0.4459083378314972, -0.9178535342216492, 0.37432485818862915, -0.6315574049949646, -0.5235829949378967, 0.7642269730567932, 0.8037927746772766, ...
func NewSteps() *Steps { s := Steps{} return &s }
[ 0.48282334208488464, -0.5370753407478333, -0.20030465722084045, 0.6090218424797058, -0.5248664021492004, -0.3191830813884735, -0.36064836382865906, -1.3257397413253784, 0.10055408626794815, -1.3458895683288574, -0.07946514338254929, -0.01492257695645094, -0.3593265116214752, 0.861360549926...