What do you want to save?
Add Code snippet
New code examples in category Go
-
Awgiedawgie 2022-02-19 17:50:01
signIn google firebase flutter
import 'package:firebase_auth/firebase_auth.dart'; import 'package:google_sign_in/google_sign_in.dart'; final FirebaseAuth _auth = FirebaseAuth.instance; final GoogleSignIn googleSignIn = GoogleSignIn(); Future<String> signInWithGoogle() async { ... Add solution -
Awgiedawgie 2022-02-18 07:15:22
golang delete file
err := os.Remove("path/to/file.format") Add solution -
A-312 2022-02-17 18:40:45
how to remove element from backing array slice golang
package main import ( "fmt" ) func RemoveIndex(s []int, index int) []int { ret := make([]int, 0) ret = append(ret, s[:index]...) return append(ret, s[index+1:]...) } func main() { all := []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}... Add solution -
Awgiedawgie 2022-02-17 18:20:02
golang goroutines
package main import ( "fmt" "sync" "time" ) func waitGroup() { var wg sync.WaitGroup wg.Add(1) go func() { defer wg.Done() fmt.Println("hello world 1") }() wg.Add(1) go func() { defer wg.Done() ... Add solution -
Awgiedawgie 2022-02-16 08:05:05
how to colorize the output of printf in golang
// this code is written in Golang colorReset := "\033[0m" colorRed := "\033[31m" colorGreen := "\033[32m" colorYellow := "\033[33m" colorBlue := "\033[34m" colorPurple := "\033[3... Add solution
Best helpers
Ranking is empty