Skip to content

Instantly share code, notes, and snippets.

package main
import "fmt"
func main() {
var n int
fmt.Printf("Enter year: ")
fmt.Scanf("%d", &n)
if n%4 == 0 {
// https://neot.am
// Verifying if given year is leap year using switch wityout expression syntax
package main
import "fmt"
func main() {
var n int
fmt.Printf("Enter year: ")
@neotam
neotam / main.go
Created June 13, 2023 19:12
GO Program to dump HTTP requests with headers and body
// Author: neotam
// https://neot.am
// MIT License
package main
import (
"fmt"
"io/ioutil"
"net/http"