github.com/youyuanwu/go-swagger@v0.19.0/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  	"time"
    19  
    20  	"github.com/go-openapi/strfmt"
    21  	"github.com/go-swagger/go-swagger/fixtures/goparsing/classification/transitive/mods"
    22  )
    23  
    24  // A Something struct is used by other structs
    25  type Something struct {
    26  	DID int64  `json:"did"`
    27  	Cat string `json:"cat"`
    28  }
    29  
    30  // SomeStringType is a type that refines string
    31  type SomeStringType string
    32  
    33  // SomeIntType is a type that refines int64
    34  type SomeIntType int64
    35  
    36  // SomeTimeType is a type that refines time.Time
    37  // swagger:strfmt date-time
    38  type SomeTimeType time.Time
    39  
    40  // SomeTimedType is a type that refines strfmt.DateTime
    41  type SomeTimedType strfmt.DateTime
    42  
    43  // SomePettedType is a type that refines mods.Pet
    44  type SomePettedType mods.Pet
    45  
    46  // SomethingType is a type that refines a type contained in the same package
    47  type SomethingType Something
    48  
    49  // SomeStringsType is a type that refines []string
    50  type SomeStringsType []string
    51  
    52  // SomeIntsType is a type that refines []int64
    53  type SomeIntsType []int64
    54  
    55  // SomeTimesType is a type that refines time.Time
    56  // swagger:strfmt date-time
    57  type SomeTimesType []time.Time
    58  
    59  // SomeTimedsType is a type that refines strfmt.DateTime
    60  type SomeTimedsType []strfmt.DateTime
    61  
    62  // SomePettedsType is a type that refines mods.Pet
    63  type SomePettedsType []mods.Pet
    64  
    65  // SomethingsType is a type that refines a type contained in the same package
    66  type SomethingsType []Something
    67  
    68  // SomeObject is a type that refines an untyped map
    69  type SomeObject map[string]interface{}
    70  
    71  // SomeStringMap is a type that refines a string value map
    72  type SomeStringMap map[string]string
    73  
    74  // SomeArrayStringMap is a type that refines a array of strings value map
    75  type SomeArrayStringMap map[string][]string
    76  
    77  // SomeIntMap is a type that refines an int value map
    78  type SomeIntMap map[string]int64
    79  
    80  // SomeTimeMap is a type that refines a time.Time value map
    81  // swagger:strfmt date-time
    82  type SomeTimeMap map[string]time.Time
    83  
    84  // SomeTimedMap is a type that refines an strfmt.DateTime value map
    85  type SomeTimedMap map[string]strfmt.DateTime
    86  
    87  // SomePettedMap is a type that refines a pet value map
    88  type SomePettedMap map[string]mods.Pet
    89  
    90  // SomeSomethingMap is a type that refines a Something value map
    91  type SomeSomethingMap map[string]Something
    92  
    93  // SomeStringTypeAlias is a type that refines string
    94  // swagger:alias
    95  type SomeStringTypeAlias string
    96  
    97  // SomeIntTypeAlias is a type that refines int64
    98  // swagger:alias
    99  type SomeIntTypeAlias int64