go tag

327 questions


1 answers
45 views
0
Variable values will be the same between goroutines.

Nice to meet you.I am currently studying go, and I am studying goroutine.I put some string keys in the map as below, and the value is flagged with bool.If the value is true, I would like to apply slee...

2 years ago

1 answers
114 views
0
Understanding When a Structure Has a Slice

I would like to save the following structures in the form of multiple teachers in one LectureInfo.typeLectureInfoct{ gorm.Model Name string Teachers[] Teacher `gorm: foreignKey:LectureID`}typeTeacher ...

2 years ago

1 answers
110 views
0
Wagtail (Django) does not show blocked images. (Character only)

Question detailsWe are developing web applications using wagtail.For content display, we block names, links, etc., import them into content models, and consider HTML output.Other information such as t...

2 years ago

1 answers
83 views
0
Downloading the Django Server File

Thank you for browsing.I'm afraid this is a very rudimentary question, but let me ask you a question.I am currently developing WebAPI at Django and would like to handle files.Therefore, we are arrangi...

2 years ago

1 answers
99 views
0
How to Change the Page Transition Destination When You Change Password with django-allauth

How do I change the page transition destination when I change the password with django-allauth?Now, if the change succeeds, nothing happens, and if it fails, it seems to be 404.django 3.1.1django-alla...

2 years ago

1 answers
104 views
0
django Manager isn't available; 'auth.User' has been swapped for 'users.User'

django is adding account creation functionality, but the error cannot be resolved.You are using a custom user.I am referring to the information on the Internet.If you understand, please.Internal Serve...

2 years ago

1 answers
66 views
0
Table name when preloading in gorm

db.Preload(Orders).Preload(Profile).Preload(Role).Find(&users)//// SELECT* FROM users;//// SELECT* FROM orders WHERE user_id IN (1, 2, 3, 4); // has many//// SELECT* FROM profiles WHERE user_id IN...

2 years ago

1 answers
63 views
0
'could not find path to 'gnuplot' error in go-gnuplot

On Debina, the code is written in Golang (version 1.6.2).I'd like to use the library in github.com.There is an error and I am troubled because I do not know how to correct it.I'm asking you a question...

go
2 years ago

1 answers
75 views
0
If you convert json to Structure in Golang's UnMarshal and then to json in Marshall, the part of the array will become an object, so I want to maintain the array.

What do you want to doConvert {color:red, mrkdwn_in:[text]} to a structure in UnMarshalChange color to red→blueChange the modified structure from Marshall to jsonOriginal mrkdwn_in:[text] does not mai...

go
2 years ago

1 answers
126 views
0
Ambiguous search LIKE statements do not hit

I used the postgreSQL LIKE statement in the ORM called gorm in the Go language, but somehow I can't get the data.The model is assumed to be: type Model structure { ID int Name string Phonetic string...

2 years ago
« - 7 - »

© 2024 OneMinuteCode. All rights reserved.