Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewJSONWith (0.06 sec)

  1. internal/grid/types.go

    }
    
    // NewJSON returns a new JSONPool.
    // No initial value is set.
    func (p *JSONPool[T]) NewJSON() *JSON[T] {
    	var j JSON[T]
    	j.p = p
    	return &j
    }
    
    // NewJSONWith returns a new JSON with the provided value.
    func (p *JSONPool[T]) NewJSONWith(val *T) *JSON[T] {
    	var j JSON[T]
    	j.p = p
    	j.val = val
    	return &j
    }
    
    // Value returns the underlying value.
    // If not set yet, a new value is created.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 15.5K bytes
    - Viewed (0)
Back to top