github.com/josephspurrier/go-swagger@v0.2.1-0.20221129144919-1f672a142a00/fixtures/goparsing/classification/models/extranomodel.go (about)

     1  // Copyright 2015 go-swagger maintainers
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //    http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package models
    16  
    17  import (
    18  	"database/sql"
    19  	"time"
    20  
    21  	"github.com/go-openapi/strfmt"
    22  	"github.com/go-swagger/go-swagger/fixtures/goparsing/classification/transitive/mods"
    23  )
    24  
    25  // A Something struct is used by other structs
    26  type Something struct {
    27  	DID int64  `json:"did"`
    28  	Cat string `json:"cat"`
    29  }
    30  
    31  // SomeStringType is a type that refines string
    32  type SomeStringType string
    33  
    34  // SomeIntType is a type that refines int64
    35  type SomeIntType int64
    36  
    37  // SomeTimeType is a type that refines time.Time
    38  // swagger:strfmt date-time
    39  type SomeTimeType time.Time
    40  
    41  // SomeTimedType is a type that refines strfmt.DateTime
    42  type SomeTimedType strfmt.DateTime
    43  
    44  // SomePettedType is a type that refines mods.Pet
    45  type SomePettedType mods.Pet
    46  
    47  // SomethingType is a type that refines a type contained in the same package
    48  type SomethingType Something
    49  
    50  // SomeStringsType is a type that refines []string
    51  type SomeStringsType []string
    52  
    53  // SomeIntsType is a type that refines []int64
    54  type SomeIntsType []int64
    55  
    56  // SomeTimesType is a type that refines time.Time
    57  // swagger:strfmt date-time
    58  type SomeTimesType []time.Time
    59  
    60  // SomeTimedsType is a type that refines strfmt.DateTime
    61  type SomeTimedsType []strfmt.DateTime
    62  
    63  // SomePettedsType is a type that refines mods.Pet
    64  type SomePettedsType []mods.Pet
    65  
    66  // SomethingsType is a type that refines a type contained in the same package
    67  type SomethingsType []Something
    68  
    69  // SomeObject is a type that refines an untyped map
    70  type SomeObject map[string]interface{}
    71  
    72  // SomeStringMap is a type that refines a string value map
    73  type SomeStringMap map[string]string
    74  
    75  // SomeArrayStringMap is a type that refines a array of strings value map
    76  type SomeArrayStringMap map[string][]string
    77  
    78  // SomeIntMap is a type that refines an int value map
    79  type SomeIntMap map[string]int64
    80  
    81  // SomeTimeMap is a type that refines a time.Time value map
    82  // swagger:strfmt date-time
    83  type SomeTimeMap map[string]time.Time
    84  
    85  // SomeTimedMap is a type that refines an strfmt.DateTime value map
    86  type SomeTimedMap map[string]strfmt.DateTime
    87  
    88  // SomePettedMap is a type that refines a pet value map
    89  type SomePettedMap map[string]mods.Pet
    90  
    91  // SomeSomethingMap is a type that refines a Something value map
    92  type SomeSomethingMap map[string]Something
    93  
    94  // SomeStringTypeAlias is a type that refines string
    95  // swagger:alias
    96  type SomeStringTypeAlias string
    97  
    98  // SomeIntTypeAlias is a type that refines int64
    99  // swagger:alias
   100  type SomeIntTypeAlias int64
   101  
   102  // swagger:type string
   103  type NullString struct {
   104  	// swagger:ignore
   105  	sql.NullString
   106  }