Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for stringify (0.17 sec)

  1. test/typeparam/boundmethod.go

    	got := stringify(x)
    	want := []string{"1", "2", "3"}
    	if !reflect.DeepEqual(got, want) {
    		panic(fmt.Sprintf("got %s, want %s", got, want))
    	}
    
    	// For now, a lone type parameter is not permitted as RHS in a type declaration (issue #45639).
    	// x2 := []StringInt[myint]{StringInt[myint](5), StringInt[myint](7), StringInt[myint](6)}
    	//
    	// // stringify on an instantiated type, whose bound method is associated with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 25 14:29:30 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. test/typeparam/stringer.go

    }
    
    func main() {
    	x := []myint{myint(1), myint(2), myint(3)}
    
    	got := stringify(x)
    	want := []string{"1", "2", "3"}
    	if !reflect.DeepEqual(got, want) {
    		panic(fmt.Sprintf("got %s, want %s", got, want))
    	}
    
    	got = stringify2(x)
    	if !reflect.DeepEqual(got, want) {
    		panic(fmt.Sprintf("got %s, want %s", got, want))
    	}
    
    	got = stringify3(x)
    	if !reflect.DeepEqual(got, want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  3. samples/bookinfo/src/ratings/ratings.js

      if (Number.isNaN(productId)) {
        res.writeHead(400, {'Content-type': 'application/json'})
        res.end(JSON.stringify({error: 'please provide numeric product ID'}))
        return
      }
    
      try {
        ratings = JSON.parse(req.body)
      } catch (error) {
        res.writeHead(400, {'Content-type': 'application/json'})
        res.end(JSON.stringify({error: 'please provide valid ratings JSON'}))
        return
      }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Sep 02 00:29:57 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  4. test/typeparam/stringerimp.dir/main.go

    }
    
    func main() {
    	x := []myint{myint(1), myint(2), myint(3)}
    
    	got := a.Stringify(x)
    	want := []string{"1", "2", "3"}
    	if !reflect.DeepEqual(got, want) {
    		panic(fmt.Sprintf("got %s, want %s", got, want))
    	}
    
    	m1 := myint(1)
    	m2 := myint(2)
    	m3 := myint(3)
    	y := []*myint{&m1, &m2, &m3}
    	got2 := a.Stringify(y)
    	want2 := []string{"1", "2", "3"}
    	if !reflect.DeepEqual(got2, want2) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 741 bytes
    - Viewed (0)
  5. src/html/template/html.go

    	s, t := stringify(args...)
    	if s == "" {
    		return filterFailsafe
    	}
    	if t == contentTypeHTML {
    		return htmlReplacer(stripTags(s), htmlNospaceNormReplacementTable, false)
    	}
    	return htmlReplacer(s, htmlNospaceReplacementTable, false)
    }
    
    // attrEscaper escapes for inclusion in quoted attribute values.
    func attrEscaper(args ...any) string {
    	s, t := stringify(args...)
    	if t == contentTypeHTML {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 19:42:28 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  6. build/pause/linux/pause.c

    limitations under the License.
    */
    
    #include <signal.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    #include <sys/wait.h>
    #include <unistd.h>
    
    #define STRINGIFY(x) #x
    #define VERSION_STRING(x) STRINGIFY(x)
    
    #ifndef VERSION
    #define VERSION HEAD
    #endif
    
    static void sigdown(int signo) {
      psignal(signo, "Shutting down, got signal");
      exit(0);
    }
    
    static void sigreap(int signo) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 26 13:26:24 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  7. build/pause/windows/pause.c

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    #include <windows.h>
    #include <stdio.h>
    #include <string.h>
    
    #define STRINGIFY(x) #x
    #define VERSION_STRING(x) STRINGIFY(x)
    
    #ifndef VERSION
    #define VERSION HEAD
    #endif
    
    BOOL WINAPI CtrlHandler(DWORD fdwCtrlType)
    {
    	switch (fdwCtrlType)
    	{
    	case CTRL_C_EVENT:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 13:09:17 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/groovy/gradlebuild/EnrichedReportRenderer.groovy

                        // Filtering an array is NOT in place
                        result.acceptedApiChanges = result.acceptedApiChanges.filter((item, pos, ary) => (!pos || (JSON.stringify(item) != JSON.stringify(ary[pos - 1]))));
                        return result;
                    }
    
                    function acceptAllErrorCorrections() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 07 20:38:43 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  9. pkg/ctrlz/topics/assets/templates/scopes.html

                    let ajax = new XMLHttpRequest();
                    ajax.onload = onload2;
                    ajax.onerror = onerror;
                    ajax.open("PUT", url, true);
                    ajax.send(JSON.stringify(si));
                }
    
                function onload2() {
                    refreshScopes();
                }
            }
    
            function onerror(e) {
                console.error(e);
            }
        }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  10. docs_src/generate_clients/tutorial004.js

                operation.operationId = newOperationId
              }
            }
          }
        }
    
        await fs.promises.writeFile(
          filePath,
          JSON.stringify(openapiContent, null, 2),
        )
        console.log('File successfully modified')
      } catch (err) {
        console.error('Error:', err)
      }
    }
    
    const filePath = './openapi.json'
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 14 11:40:05 UTC 2024
    - 1K bytes
    - Viewed (0)
Back to top