Skip to content

Instantly share code, notes, and snippets.

View sajjaphani's full-sized avatar

Phani Sajja sajjaphani

View GitHub Profile
@sajjaphani
sajjaphani / main.go
Created May 18, 2023 13:57
Golang example for marshaling/unmarshaling a value of type string or an array of strings
package main
import (
"encoding/json"
"errors"
"fmt"
"strings"
)
type Filter struct {