Problems hidden in beego field

{
    "Username":"",
    "Password":""
}

but I need the ability to log in by the user, so the password submitted by the user cannot be verified. How to solve it?

Mar.04,2022

problem solved, give a json: "-" to solve

type User struct {
    Username    string
    Password    string    `json:"-"`
}

multiple parameters are separated by spaces, such as

Password  string    `orm:"size(128)" json:"-"`
  • The problem of inputting uncertain parameters into go

    < H1 > question < H1 > when registering models using the beego framework, an error is reported: panic: <orm.RegisterModel> cannot use non-ptr model struct `.` if you look at the description, you should pass in the pointer, but I passed the poi...

    Mar.09,2021
  • Questions about data types in golang?

    as shown in the figure, the this.Ctx.Input.Param ( ": pag ") in the beego framework clearly returns string, but why does the error prompt say int? add: Thank you for answering, because this is often written in js and php, and I don t think ther...

    Apr.05,2021
  • Beego cannot find templatefile

    just getting started, I selected a project from the official case and followed the documentation step by step, but kept prompting can t find templatefile in the path:views admin login.tpl I am using beego version 1.10.1 : ask for advice. I gu...

    May.26,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36dbd-2c076.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36dbd-2c076.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?