github.com/viant/toolbox@v0.34.5/test/fileset_info/user.go (about)

     1  package fileset_info
     2  
     3  import (
     4  	"fmt"
     5  	"time"
     6  )
     7  
     8  type Addresses []Address
     9  type Ints []int
    10  type Z string
    11  
    12  type Country struct {
    13  	Code string
    14  	Name string
    15  }
    16  
    17  //Address represents a test struct
    18  type Address struct {
    19  	Country
    20  	City string
    21  }
    22  
    23  type AMap1 map[string][]int
    24  
    25  type AMap2 map[string][]*Country
    26  
    27  type AMap3 map[string]*Country
    28  
    29  type A Address
    30  
    31  //User represents a test struct
    32  type User struct { //my comments
    33  	///abc comment
    34  	ID             *int //  comment1 type
    35  	Name           string
    36  	DateOfBirth    time.Time `foo="bar"`
    37  	Address        Address
    38  	AddressPointer *Address
    39  	Addresses      Addresses
    40  	Ints           []int
    41  	Ints2          Ints
    42  	M              map[string][]string
    43  	C              chan *bool
    44  	Appointments   []time.Time
    45  	AMap1
    46  	AMap2
    47  	AMap3
    48  }
    49  
    50  //Test represents a test method
    51  func (u User) Test() {
    52  	fmt.Printf("Abc %v", u)
    53  }
    54  
    55  //Test1 represents a test method
    56  func (u User) Test1() bool {
    57  	fmt.Printf("Abc %v", u)
    58  	return false
    59  }