package main

import (
	"github.com/gin-gonic/gin/json"
	"fmt"
)

func main() {
	s :=IT{"hangxin" ,[]string{"go",
	"c"},12.12}
	txt,err :=json.MarshalIndent(s,"","")
	if err !=nil{
		fmt.Println(err)
	}
	fmt.Println(string(txt))
	fmt.Println(s)
}

type IT struct {
	Company string `json:"company"`
	Subiect  []string `json:"subiect"`
	Price float32 `json:"price"`
}