Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newParam (0.12 sec)

  1. pkg/test/framework/components/echo/config/param/params.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package param
    
    // Params for a Template.
    type Params map[string]any
    
    // NewParams returns a new Params instance.
    func NewParams() Params {
    	return make(Params)
    }
    
    func (p Params) Get(k string) any {
    	return p[k]
    }
    
    func (p Params) GetWellKnown(k WellKnown) any {
    	return p[k.String()]
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  2. pkg/test/framework/components/echo/config/builder.go

    	params := s.Params()
    	newParams := param.NewParams()
    	for _, nsKey := range []param.WellKnown{param.Namespace, param.SystemNamespace} {
    		if params.ContainsWellKnown(nsKey) {
    			val := params.GetWellKnown(nsKey)
    			if strVal, ok := val.(string); ok {
    				newParams.SetWellKnown(nsKey, namespace.Static(strVal))
    			}
    		}
    	}
    	return s.WithParams(newParams)
    }
    
    func (b *Builder) addYAML(s Source) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 23:42:29 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/rsc.io/markdown/para.go

    	// might have been taken away to start a table.
    	pos := p.pos()
    	pos.EndLine = pos.StartLine + len(b.text) - 1
    	return &Paragraph{
    		pos,
    		p.newText(pos, s),
    	}
    }
    
    func newPara(p *parseState, s line) (line, bool) {
    	// Process paragraph continuation text or start new paragraph.
    	b := p.para()
    	indented := p.lineDepth == len(p.stack)-2 // fully indented, not playing "pargraph continuation text" games
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top