I hereby claim:
- I am tylerstillwater on github.
- I am tylerstillwater (https://keybase.io/tylerstillwater) on keybase.
- I have a public key ASC-NPzCAFpd6soD3fkmBpXTXmYvLnZjzpru16rl2BN5Swo
To claim this, I am signing this object:
// | |
// FeatureVoter.swift | |
// Mutaclip | |
// | |
// Created by Tyler Stillwater on 5/10/23. | |
// | |
// Custom voter implementation for: https://github.com/AvdLee/Roadmap | |
// Note: will not work until this PR is merged: https://github.com/AvdLee/Roadmap/pull/71 | |
{ | |
"id": "named-insured", | |
"index": 0, | |
"status": "incomplete", | |
"graphql": { | |
"raw": "... raw graphql persist query ...", | |
"values": { | |
"/entity/quote_id": "1B1C579D-D6A6-4619-A726-B23911C765EF", | |
"/quote_id": "171D54A0-9C2A-42D4-AE6E-F55292F652A7" | |
} |
package main | |
import "fmt" | |
type MyError struct { | |
Code int | |
Message string | |
} | |
func (m MyError) Error() string { |
package main | |
type thisDoesNotWork struct { | |
i int | |
} | |
func main() { | |
var j int64 | |
thisWorks(j) // quick fix convert works here |
package main | |
type child struct { | |
name string | |
} | |
type parent struct { | |
childName string | |
} |
package main | |
import "database/sql" | |
type executor struct { | |
db *sql.DB | |
} | |
func (e executor) exec(query string) { | |
e.db.Exec(query) |
I hereby claim:
To claim this, I am signing this object:
// All material is licensed under the Apache License Version 2.0, January 2004 | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// This sample program demonstrates how the logger package works. | |
package main | |
import ( | |
"fmt" | |
"log" | |
"os" |
{ | |
"snippets": [ | |
{ | |
"match": {"global": true, "pkgname": ".", "fn": ".*_test.go"}, | |
"snippets": [ | |
{"text": "func Test", "title": "", "value": "func Test${1:ObjectName}${2:TestName}(t *testing.T) {\n\t$0\n}"}, | |
{"text": "func Benchmark", "title": "", "value": "func Benchmark${1:ObjectName}${2:BenchmarkName}(b *testing.B) {\n\n\tb.StopTimer()\n\n\t$0\n\n\tb.StartTimer()\n\n\tfor i := 0; i < b.N; i++ {\n\t\t\n\t}\n\n}"}, | |
{"text": "func Example", "title": "", "value": "func Example${1:ObjectName}${2:ExampleName}() {\n\n\t$0\n\n\t// Output:\n\t// \n\n}"} | |
] | |
} |
// All material is licensed under the Apache License Version 2.0, January 2004 | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// Sample program that takes a stream of bytes and looks for the bytes | |
// “elvis” and when they are found, replace them with “Elvis”. The code | |
// cannot assume that there are any line feeds or other delimiters in the | |
// stream and the code must assume that the stream is of any arbitrary length. | |
// The solution cannot meaningfully buffer to the end of the stream and | |
// then process the replacement. | |
package main |