This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"github.com/go-playground/validator/v10" | |
) | |
func UnmarshalFoo(data []byte) (Foo, error) { | |
var r Foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
type Foo struct { | |
PropertyString string `json:"propString"` | |
PropertyMapString map[string]string `json:"propMapString"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
func main() { | |
var j = `{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
property my_title : "Ibra Itunes/Spotify Lyrics Search" | |
property baseURLGenius : "https://genius.com/search?q=" | |
property baseURLMusicxmatch : "https://www.musixmatch.com/fr/search/" | |
tell application "Spotify" | |
set precNom to "" | |
repeat | |
if player state is not stopped then | |
set theTrack to current track | |
else if selection is not {} then |