Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Marshall (0.14 sec)

  1. tests/preload_suits_test.go

    package tests_test
    
    import (
    	"database/sql"
    	"encoding/json"
    	"reflect"
    	"sort"
    	"sync/atomic"
    	"testing"
    
    	"gorm.io/gorm"
    )
    
    func toJSONString(v interface{}) []byte {
    	r, _ := json.Marshal(v)
    	return r
    }
    
    func TestNestedPreload1(t *testing.T) {
    	type (
    		Level1 struct {
    			ID       uint
    			Value    string
    			Level2ID uint
    		}
    		Level2 struct {
    			ID       uint
    			Level1   Level1
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Mar 18 05:38:46 GMT 2022
    - 30.3K bytes
    - Viewed (0)
Back to top